Preference or is one better than the other


#1

This is not the most important question of the day but I am curious - hope I put this in the right place…

Is one of these better than the other? Value vs Expression use?

if(condition, true, false)

condition ? true : false

I have used both but there are times when the first won’t work in a finished Piston but the second will. Have never run across the reverse.


#2

I use condition ? true : false mainly when nesting conditions.


#3

Thx