A common use would be like this:I have always thought the common use is($today eq 'Monday') ? $firstDay =1 : $firstDay =0;
$firstDay = $today eq 'Monday' ? 1 : 0;
In reply to Re^2: true/false condition - what am I doing wrong?
by choroba
in thread true/false condition - what am I doing wrong?
by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |