I'm supposed to write code for a function that does the following conditional statement:

x ? y : z

I found an explanation stating that this means:

If x is true, then execute y, otherwise execute z.

However, the example given is conditional(2,4,5) = 4

I don't see how there is a statement to evaluate to true or false.

I have no clue why the answer is 4, can anyone explain it?