Terminal Hacker If statement not working

Hey so I have been working on the terminal hacker and can not figure out why my if statement is not working it looks exactly the same as the video but I still cannot see why it’s not working.

Every time I type anything into the game it resets it back to the main menu. not just when I type menu. Why is that? Thanks, much!!

You have a semicolon ( ; ) right after your if condition, so the code in the curly brackets is always executed, regardless of what the user input is

1 Like

Thank you so much i stared at it and could not find anything different!