I NEED HELP! If/Elif/Else

I have a problem with If/Elif/Else coding for the dressing game.

22%20PM

This is what I do for my dressing game, including the if/elif/else. I follow every step thoroughly however, when I play it in the app and choose the second option, it always chooses the last option. I followed @Dara.Amarie instructions on doing this, but it still doesn’t work. What do I do???

Your option names in the choice are still “Option 1” and “Option 2” and “Option 3”
You didnt’ change them to “comfortable” or “expensive”

Ahh I see what you did, you’re mixing gains and the “choice name” method together. Remove those gains. You can’t use them for that dressing game. You need to actually change “Option 1” into “Expensive” and the other option names.

Wait so you’re telling me that I need to change my option names with the gain names and use the option names for the if/elif/else method?

Yes, read this thread: HOW TO: Remember Past Choices (if/elif/else)

It still didn’t work.

05%20PM

You have CLOTHES in the if/elif

But the “L” in CLOTHES is lower cased in the choice

You have it as

choice (ClOTHES)

So fix it so that the “l” is capitalized

Omgggg it worked!!! Thank you so much! I swear I can spell, but I guess I was rushing to finish it! You are a literal angel
:pray:t5:

1 Like

Glad it works now! :wink:

Moved to Directing Helps and Tips since this involves coding. Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.