construct is to use the trinary operator:if ($in > $numb) { print "Too high! "; }else{ print "Too low! "; }
print 'Too ', ($in > $numb) ? 'high!' : 'low!';
In reply to Re: Reading an array with a single value (My 2nd completed script!)
by Maclir
in thread Reading an array with a single value (My 2nd completed script!)
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |