Posted 29 July 2012 - 04:55 AM
Why doesn't the else command work?
I'm getting trouble at line 14.
I'm getting trouble at line 14.
conventinal = ("1337") heavy = ("2448") textutils.slowWrite ("ENTER LAUNCH CODE FOR THE HEAVY OR CONVENTINAL MISSILES:") input = read() if input == conventinal then rs.setOutput ("left", true) elseif input == heavy then rs.setOutput ("right", true) if input == else then textutils.slowPrint("CODE INVALID!!! SHUTTING DOWN") os.shutdown end sleep(1) textutils.slowWrite ("Missiles are FIRING! Look in the sky!!!!") sleep(2) textutils.slowWrite ("Action Completed") sleep(3) os.shutdown()