My If/Elif/Else Command is Not Previewing

I’m currently using the web previewing on my laptop, and I tried resetting it. (the previewer)

Here’s the script:

if (OUTFIT is “Flannel Fun”){

@SUMMER changes into SUMMER_flannelfun
@SUMMER enters from left to screen center and SUMMER does it while run_athletic_neutral_loop
@JAYDEN enters from right to screen center and JAYDEN does it while run_athletic_neutral_loop

} elif (OUTFIT is “Comfy”){

@SUMMER changes into SUMMER_comfy
@SUMMER enters from left to screen center and SUMMER does it while run_athletic_neutral_loop
@JAYDEN enters from right to screen center and JAYDEN does it while run_athletic_neutral_loop
}

I can’t seem to find my error, so can someone help please?

Need to remove (OUTFIT is “Comfy”)

Since elif is anything else :hugs:

1 Like

Oh, thank you! I will try this.

1 Like

How come when I removed (OUTFIT is “Comfy”) it says “Unexpected BLOCK_BEGIN”?

You need to use this donacode

if (condition) {

} else {

}

Instead of the if/elif…What was the choice originally and did you create a label? I dont think you can do (OUTFIT is “Flannel Fun”)

1 Like

Oh, alright!

I thought the (condition) part was to put choices there, to remember previous choices. Like, I named the choice option “OUTFIT” so in condition I put (OUTFIT is “Flannel Fun”) which was one of the choices.

It should be “else” and not “elif” since you only have two conditions :grin:
The rest seems to be correct, if you named your choice “Outfit”

1 Like

Oh okay, thank you once again!

1 Like