$is_admin = ($user['permissions'] == 'admin') ? true : false;
<?php if ($a > $b) echo "a is bigger than b"; ?>