I have a problem when connecting the variable (from the create a block) to a variable in the function because it's inside a switch. How can I link them? enter image description here

I want to connect the variable to each (20) in the motor blocks

2 Answers 2


Using variables is probably a better solution, but you can pass data wires into a switch block if it is tabbed view.


To get technical, this thing (pictured below) is a "parameter", not a "variable".

screenshot of my block parameter

"Variables" look like this:

enter image description here

You can use a data wire to write the parameter value to a variable before the switch block and then read the variable inside of the nested switch blocks. Something like this...

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.