Description
This is a two-part conditional operator with three (thus the 'Ternary' name) operands.
The Ternary operator can be used when you have a variable to which you want to assign one of two possible values.
It is a shorthand way to express a form of the if else statement.
When executing, conditional is evaluated. (note: conditionalrequires parenthesis around it)
If conditional is true (non-zero),expression2 is assigned to expression1
If conditional is false (zero), expression3 is assigned to expression1