06-26-2015 09:58 AM
I currently have two boolean inputs that I would like to use to select cases in a case structure. I would like to have four cases, each one dependent on the true/false condtions of the two booleans. If boolean 1 =true, then case 1 should be used, if boolean 2=true, then case 2 should be used, etc.
What structure should I use to convert these boolean inputs into numeric cases?
Solved! Go to Solution.
06-26-2015 10:02 AM
Build your two booleans into an array. Then use boolean array to number.
06-26-2015 10:02 AM
06-26-2015 10:05 AM
Or build them in to an array and "Search 1d Array". If you are only looking for a single bool being true, this would be easier because your cases could be {0,1,2,3} instead of {1,2,4,8}
06-26-2015 01:33 PM
Change the radix on the case selector to boolean if it makes more sense to view the cases as 1's and 0's rather than base10 numbers.