General
Change switch output/input
Started by newtfish on .
Sign in or create an account to join the conversation.
Hi,
Im wondering if its possible to change the output/input of a switch.
At the moment it does something like:
0. 0. 0. 1. 0. 0. 0.
Is there any way to get it to output?
4
Instead of this long list?
Im wondering if its possible to change the output/input of a switch.
At the moment it does something like:
0. 0. 0. 1. 0. 0. 0.
Is there any way to get it to output?
4
Instead of this long list?
look at firstof(x) and nonnull(x) functions in the User Guide. They may get you what you want, depending on the context and what exactly you want to do with the value.
Thanks.
The firstof function does indeed change the output of the Switch.
However, im wondering is there any way to send the input in this format?
e.g.
"/Switch/x 4."
The firstof function does indeed change the output of the Switch.
However, im wondering is there any way to send the input in this format?
e.g.
"/Switch/x 4."