$a = 1 ? 'abc' : 'def'; # sets $a to 'abc' $a = 0 ? 'abc' : 'def'; # sets $a to 'def'
In reply to Re: What does the ternary statement actually do?
by bikeNomad
in thread What does the ternary statement actually do?
by Mr.T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |