<?php IF $_SESSION['_amember_user']['data']['account_name'] <> test, web, demo
echo "yes"
else echo ""
?>
<?php
switch ($_SESSION['_amember_user']['data']['account_name']) {
case "test":
case "web":
case "demo":
echo "";
break;
default:
echo "yes";
}
?>
Open in new window
Other possiblity would be to create an array containing test, web and demo and test whether the variable is part of this array.