This trinary operator comes directly from C language.$myVar = !defined($somevalue) ? "default" : $somevalue;
In reply to Re: Syntax for 1 line "either this or this"
by arthas
in thread Syntax for 1 line "either this or this"
by theAcolyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |