def Commands():
command = raw_input("Type 'Mod', 'Run', 'Exit', or 'Help':")
elif command == "Run" :
restart = True
break
if groups == 4 :
restart = True
while restart :
restart = False
Commands()
How can I get this function to work properly? The "restart = True" "break" lines do not start the previous "while" loop again. I am using the commands in multiple "if" statements and want to avoid 80+ lines of code repeated for each one. I have removed the unrelated code that works properly.