Change switch output/input

Discuss Lemur and share techniques.
Post Reply
newtfish
Newbie
Posts:41
Joined:09 Apr 2011 19:32
Change switch output/input

Post by newtfish » 04 Mar 2014 18:42

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?

oldgearguy
Regular
Posts:315
Joined:02 Nov 2013 11:19

Re: Change switch output/input

Post by oldgearguy » 04 Mar 2014 18:58

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.

newtfish
Newbie
Posts:41
Joined:09 Apr 2011 19:32

Re: Change switch output/input

Post by newtfish » 04 Mar 2014 19:06

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."

Post Reply