[Solved] How do I add ‘if’ commands inside a ‘why’ loop [closed]


It is because the if statement is not indented properly and its condition is not specified as a string ‘help’:

while  1:
    userCommand = input('Type a command (type \'help\' for syntax): ')
    if userCommand == 'help':
        print ('flight: this command will be used to list a flight')
        break

solved How do I add ‘if’ commands inside a ‘why’ loop [closed]