Use the operators for what they were designed, and your code will be infinitely more readable and usable.$some_condition ? &some_sub : &other_sub; if ($some_condition) { $some_var = &something; } else { $some_var = $something_else; }
In reply to Re: Trinary or If'n'Else?
by Fastolfe
in thread Trinary or If'n'Else?
by SamQi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |