add inline if (thrinary condition) expression