in reply to "x ? y : z" notation
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "x ? y : z" notation
by davido (Cardinal) on Mar 26, 2009 at 04:58 UTC | |
by rovf (Priest) on Mar 26, 2009 at 09:09 UTC | |
by poolpi (Hermit) on Mar 26, 2009 at 10:31 UTC | |
|
Re^2: "x ? y : z" notation
by apok (Acolyte) on Mar 26, 2009 at 00:38 UTC |