I have a ForAll function, and I was trying to set a variable inside that, if a condition is true. Something like this:
ForAll(...., If(.... , Set(Variable, true), Set(Variable, false) ))I already realized that is not possible to set a variable inside a ForAll function, so I am trying to do that with a collection.
I've created a collection the same I was trying to set the variable:
ForAll(...., If(.... , Collect(Collection, {Boolean: true}), Collect(Collection, {Boolean: false})))Now I have to check if the last record is true or false, and I can't figure out a way to do that, since I can't compare a Record with a Boolean.
I created a new collection (Collect(CollectionTF, {Boolean: true}) to compare last records, but I don't know how to do that. I'm getting "These types can't be compared: Record, Record".
Is there a way to compare just last rows of these two collections' columns?
Or, is there a better way to get information (true or false) from within a ForAll function?
Thank you!!

Report
All responses (
Answers (