MX: Quick-check an Array for "true" in all fields?

I have an array that I want to check with a “setInterval”-triggered function.

Is there a way to do something like an “IF”-check on all entries / fields of an array? The array contains the feedback from another function, so each field can only be “true” or “false”.

What I want is something like this:
IF (all values from array X == true) {
// [stuff]

Only way I can think of is to set a dummy variable to “true”, do a for-loop through the array and check for “false” and if any of the entries is “false”, the dummy will be set to “false”, too- otherwise it will remain “true”…

any better ideas?
Thanks :slight_smile: