Update trial.php with more command blocks

defining variable, if/elseif/else statements, switch/case blocks