|
Posted by Uleric on 02/01/07 01:09
Having trouble wrapping this up into a viable statement
I want to check on a users status before allowing a script to be run.
$myzone can only be 1 variable, but it can be here, there or where.
if ($myzone !== ("here") or ("there") or ("where")) { die: }
This does not work however, it will kill the script regardless if one
of the statments is actually true.
However, this WILL work if only one operator is checked:
if ($myzone !== "here") { die: }
If $myzone is "here" the script is allowed to run. If it's anything
else, it dies, as it is supposed to. However, I want to check if
$myzone is several options. That is my delima.
Navigation:
[Reply to this message]
|