Is there a way to “go to” a specific block from a code block?
Something like :
switch( myValue ) {
case x:
go to block1
break;
case y:
go to block2
break;
default:
}
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
else
-> 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