Trouble with If Elif Else

Hey guys! I’m am having some real trouble using if elif and else commands. This is the first time I’ve tried to do this so any advice would be extremely helpful! I’ll post pictures below.

error

(above is the error)

error2

This is the choice, I use this choice twice. I do this because the story branches before the outfit change.

When doing if loops, the else section shouldn’t have an expression after it ( Dress is Shorts).
Try adding that to a second elif and at the end in the else section just write “continue”

E.g.

If (…) {

} elif (…){

} elif(…) {

} else {
continue
}

Hope that helps :slight_smile:

1 Like

I’ll give it a whirl! Thank you!

1 Like

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:

Ooops! Sorry @Sydney_H ! I thought I clicked the right one! :smile:

1 Like
if (label1) {
} elif (label2) {
} else {
}

if is always first, elif is always in the middle, and else should always be the last one by itself
:point_up: Taken from Dara’s thread. The last choice should be else on its own.
if(DRESS is “Skirt”){

}elif(DRESS is “Boots”){

}else{

}

No problem, it happens. :grin:

1 Like

Okay! Thank you! It works perfectly now! Thank you!

2 Likes

Marked as solved and closed. Thanks!