How do I get multiple if-blocks to work?

I have multiple if-blocks concerning a variable, like if myVar = 1 and if myVar = 2 in a forever loop. I originally set myVar to 2, and the sequence works, but as soon as myVar is switched to 1, the if-blocks stop running.

i think you should use if - else instead if

Another problem is that if you name multiple variables with the same name, you may get confused when using the variable

1 Like

@Jane Hi! Can you please share the link to the CoSpace with us so we can take a look for you? :slight_smile: Please make sure the remix option is on so we can view the code, thanks!