Write it like this:
$ans = 6 < 8 ? 'true' : 'false';
update: Aack! I didn't notice that toolic had already given this suggestion. Sorry for creating an echo in the Monastery. :)
Dave
In reply to Re: if statement confusion
by davido
in thread if statement confusion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |