Hi, does anybody have any suggestions to accomplishing something like the following;
This error for this call is: "Cannot evaluate the 'and' function with pre-evaluated parameters"
apply( and(_,_), BooleanArray1, BooleanArray2 )
I have two Boolean arrays and I would like to evaluate to TRUE if both arrays are TRUE for that index.
Any help or suggestions would be appreciated. Thank you
Discussion posts and replies are publicly visible
Ben Hulet To the best of my knowledge, we don't need a looping function here to achieve what you have been trying to do until and unless I miss something.
Boolean Array 1 = Boolean Array 2 should do the job.
Ex1: {true,false} = {true,false} => true,true
Ex2: {true,false} = {true,true} => true,false
Ex3: {true,true} = {false,true} => false,true
If you want only one final output, use an and() or or() on the above output depending on the use case.
The problem is when you do {false, false} = {false, false}... the result is 'true, true' but it fails OP's use case.