Different variables for *if boolean statments (both true and false)

*if ((var1 = true) and *if (var2 = false))
     *goto_scene var1scene

*elseif (var2)
     *goto_scene var2scene

*elseif ((var3) and *elseif not (var2))
     *goto_scene var3scene

the first and third options don’t work, and I tried to write them in various ways, not just the ones you see here, but nothing works and instead of going to the intended scene, it just goes to the next one in the scene list. Is there actually any way to do wat I’m trying to do here?

You don’t need to add *if twice, same for *elseif.

1 Like

You only need one *if (or eleseif) statement per line.

Also, the elseif not var2 in the third check is redundant as var2=true is already being checked in the second. If the run gets to the third check, you are already guaranteed to have var2=false

*if ((var1 = true) and (var2 = false))
     *goto_scene var1scene
*elseif (var2)
     *goto_scene var2scene
*elseif (var3)
     *goto_scene var3scene
5 Likes

yes thank you this seems to work :+1:

1 Like

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.