Below is an example of finding out if any of the VAV’s are occupied. To find the “all” value, just replace the any block with either all block. This is based on the above program set ups.

The below is finding out if any of the VAV’s are occupied of all the VAV’s associated to their AHU. The any block combined with the cmpEq block will look at all the occMode variables and return a true/false value depending if any are occupied or not.

First the user will link the bundle variable to the val input of the gridSelectCol block.

Then the user will specify the variable name of the point they would like to get the any result of in the “colName” input. This is the exact variable name found in the bundle program. It’s case sensitive. In our case “occMode”.

The user would then link the gridSelectCol output to the val input of the any block.

The user would link the “it” variable to the first input of the cmpEq block.

Then type in “true” for the next input of the cmpEq block. In our example, “occMode” is a boolean type so the input value reflects that. If it’s a number, you can choose a number value and change the logical block accordingly etc.

Link the output of the cmpEq block to the iterator input of the any block.

The any block output would then be linked to the input of the writable variable to use for the any value variable. In our case “anyOccupied”.