Is it possible to check for 2 things in an if statement, like
if($level == "Admin", "Moderator"){
I dont really want to check form admin, then use elseif and check for moderator.
Thanks.
if($level == "Admin" || $level == "Moderator)
Check out your logical AND (&&) and OR (||) operators.
Originally posted by Wynder if($level == "Admin", "Moderator"){ if($level == "Admin" || $level == "Moderator) Check out your logical AND (&&) and OR (||) operators.
Sweet, thanks for that 🙂