Refactored if.php to if/elseif/else statements, changed variables