Does Xojo have anything like "all values in this array are equal"?

I want to see if values in an array of booleans are either all true or all false.

swift has if selectedDV.allSatisfy({$0 == true})

anything similar in Xojo?

Xojo … No

for i = 1 to arr.ubound
if arr(i)<>arr(i-1) then 
exit for
end if
next i
return flag

sorry… I thought you meant if all array values were equal

Ahhh, thanks Dave, I’ll use that.