Recreated the function of switch.php using only the if and elseif statements