An example:<condition> ? <do if condition was true> : <do if it wasn't>
$x == 1 ? print "x was '1'" : print "x was something else";
----
I Go Back to Sleep, Now.
OGB
In reply to Re: "x ? y : z" notation
by Old_Gray_Bear
in thread "x ? y : z" notation
by apok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |