01-21-2011 06:24 PM
Is there an elegant way to invert a digital array so that every 0 becomes 1, and every 1 becomes 0? Or is it possilbe to invert a Boolean array so that every True becomes False, and every False becomes True?
Thanks,
Ron
(I'm currently using a "Select" too and placing a "F" on the top, and a "T" on the bottom.
Solved! Go to Solution.
01-21-2011 06:31 PM
On the boolean pallete you will find the not function. Feed the array through it.
01-21-2011 06:34 PM
Thank you!
that's exactly what I was looking for.
01-21-2011 06:34 PM
rsi77,
You can Xor the array with TRUE:
Rgs,
Lucither
01-21-2011 09:33 PM
OK, that's prettry clever. I can use that as well.
01-21-2011 11:37 PM
And if it is an array of 0's and 1's, subtract the array from 1.