08-01-2013 10:09 AM
I'm not really sure if this has a name, but I want to input a constant between 0 and 7. I would like there to be 8 outputs, and depending on the value of the input, the corresponding output is selected. The output could be 1,0 or T/F. I think I could achieve the same goal with a lot of programming, but I wondered if this was already a tool. Thanks.
Solved! Go to Solution.
08-01-2013 10:14 AM
Put the eight values in an array and use the "input" to index the array for the output.
Unless I completely misunderstood your intention...
08-01-2013 10:19 AM
case statement? the cases can be setup to be your inputs, they don't have to be specifically 0-7, case can contain anything to output. Of course, if you want 0,1 in some cases and T,F in other it gets a bit more complicated, but that could be handled in a number of way.
08-01-2013 10:36 AM
I have made a quick sketch of what I need. Im not sure if this is what you were describing. Thanks
https://docs.google.com/drawings/d/1ytM01yggd1WrcJT1ygPw_iouDmsntCCKYltCnb2YSSY/edit?usp=sharing
08-01-2013 11:08 AM
Can you just attach your drawing to a message. I can't get into Google Docs.
08-01-2013 11:11 AM
here you go
08-01-2013 11:23 AM
Index Array will do what you want. Just have all of your possible outputs in an array and index out whichever element you want.
08-01-2013 11:30 AM - edited 08-01-2013 11:30 AM
Or are you looking for something like this?