Here's the reason why:
"yes" or "no"
evaluates to "yes", so
$var eq ("yes" or "no")
is the same as
$var eq "yes"
In reply to Re: Need help testing to see if a variable is one value or the other
by ikegami
in thread Need help testing to see if a variable is one value or the other
by paulehr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |