Ask coding questions

← Back to all posts
If Elif Else Statements (Kinda) Broken
TheDestroyer99 (11)

I am making a text-based fantasy game and my if and Elif statements aren't working.
no matter what I put in the menu input it will always do the first thing in the if Elif string.

run the program to see what I'm talking about

Coder100 (17090)

please fix ur code first

TheDestroyer99 (11)

@Coder100 This Is Commented Out When The Program Is Run


which statement isn't working?

DavidSafro (19)

idk it works for me. what does it show for you

TheDestroyer99 (11)

@DavidSafro when I type start or credits it performs the actin under the first if statement (end)