02-06-2017 09:51 AM
Hello
How can i extract different column (combinations) from an array.
I would like to have a 3 boolean array and would like to extract column 1 and 3 by pressing boolean 1 and 3 to ON state.
Solved! Go to Solution.
02-06-2017 10:23 AM - edited 02-06-2017 10:46 AM
You can do something like this. Use boolean array to number to select different cases.
edit:
didnt want to confuse you with array selection, changed the booleon array. Arrays start at 0 so if you wanted 1 and 3 it would look like this.
02-06-2017 10:58 AM
Thank you so much. It works great apart from the fact that i have to create 8 cases, which would be a problem if the size of my boolean array increases?
Is there a solution for that?
Thanks again
02-06-2017 11:05 AM
Here is another option if you want maintainability on it.
02-06-2017 11:08 AM - edited 02-06-2017 11:09 AM
@Wolleee wrote:
Here is another option if you want maintainability on it.
.
You may also need a transpose array if you want the final array to be set in columns, since build array will create new rows.
02-06-2017 12:23 PM
I guess conditional autoindexing has been made exactly for this purpose... No case, no build array, no shift register. My 2011 can not make them, so I can not show...
02-06-2017 12:55 PM
@Alexander_Sobolev wrote:
I guess conditional autoindexing has been made exactly for this purpose... No case, no build array, no shift register. My 2011 can not make them, so I can not show...
Very true,
Here is a cleaner example using alexander's suggestion, if you have the conditional tunnel mode available.
02-06-2017 01:06 PM - edited 02-06-2017 01:07 PM
Slightly different variation.