12-08-2025 12:20 PM
Is there a more elegant way to do this?
12-08-2025 12:26 PM
Yes, they're in an array to begin with, so just use a FOR loop followed by the Boolean array AND function on the output.
However, this is a weird thing to do, and feels like you're asking how to do something better that you shouldn't be doing in the first place. Maybe if you clarify your overall goal we can suggest the best option going forward.
12-08-2025 12:37 PM
Nevermind. Bad question. The datatype is actually DBL and the binary values come from checking for non-zero numerics.
12-08-2025 01:08 PM
Hi JD,
@JDMarihew wrote:
Nevermind. Bad question.
Still you duplicate a lot of code instead of using an autoindexing FOR loop…
(You might even stop the loop on the first FALSE result!)
12-08-2025 01:53 PM
Another option would be to just get the cluster data (from the reference if necessary) and then use Unbundle By Name to get your values out.
12-08-2025 01:56 PM
If you are using all of the values in the cluster (ie your cluster only has the 4 numeric values), just get the cluster value and use Cluster To Array. You can then run the resulting array into a FOR loop or possibly even do it all without a loop (the >0 will work on an array, then use AND Array Elements).
12-08-2025 01:57 PM
This is my current version
Just checking to make sure that all 4 limit values have been set.
12-08-2025 02:13 PM
You do not need any loops to answer the questions (of either an Array of Booleans or a Cluster of Booleans).
No loops. One (for Arrays) or two (for Clusters) functions on the Boolean (+ Cluster) palettes gets you the answer as a Boolean.
Bob Schor
12-08-2025 06:13 PM
@JDMarihew wrote:
This is my current version
Just checking to make sure that all 4 limit values have been set.
With this setup, you actually do not need to autoindex the output tunnel nor the AND Array Elements. You just need to wire out the last value of the comparison. This is because you stop the loop when you get a false (fail). If the last one you checked passed, then we know all of them passed.
12-09-2025 12:26 AM - edited 12-09-2025 12:55 AM
Hi JD,
@JDMarihew wrote:
This is my current version
Just checking to make sure that all 4 limit values have been set.
Additionally you don't need to wire the constant "4" as you want to autoindex ALL the control references!
And you can get rid of the NOT when you switch the loop condition to "continue on TRUE"…