is the or a short circuit operator?
Yes. That code should work fine.
Now, if you take the final step and incorporate a ternary operator in the print statement, you'll have reproduced BrowserUk's version. :-)
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: Re: Re: Re: Shorten script
by sauoq
in thread Shorten script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |