How to branch based on the value of a variable

Is there a way to “go to” a specific block from a code block?
Something like :
switch( myValue ) {
case x:
go to block1
case y:
go to block2

if you mean “jump” to other blocks without connecting directly with lines, no.

also, code block cannot have multiple choices, but just only goes to next block depends on whether codes are executed successfully or not(failed).

IF blocks can branch your flow based on the value of variables.

1: if myValue = 1
-> block A
2: if myValue = 2
-> block B
-> block C

1 Like

Get the code block to set a variable to a vaue depending on the result of the code. Then use an IF block to take the desired path dependng on the value of the variable.

1 Like