07.10.2012, 16:45
Ternary operators are used to return values, not expressions.
Example
will print "Variable is Off"
Example
PHP Code:
new var;
printf("Variable is %s", var == 0 ? ("Off") : ("On"));