Indicator Block Conditional Order

Hi,

I have implemented an indicator with the following structure:

Condition 1: General Loss of Comms Condition
Condition 2: Device is Disabled Condition
Default: Show Last Reading (Device is Enabled)

Are the conditions evaluated in order?

Condition 1 and 2 could be true at the same time, but I am assuming Condition 1 will become true, and that’s the output, end of evaluation.

It appears to test this way, just looking for confirmation before signing it off.

The alternative is be explicit:
Condition 1: General Loss of Comms Condition
Condition 2: Device is Disabled Condition (AND Recent Comms Detected)
Default: Show Last Reading (Device is Enabled) (AND Recent Comms Detected)

But this may not be necessary.

Yes, the conditions in the Indicator Block are evaluated in order, and the first one whose expression returns a truthy value will be the display parameters that the block uses.

1 Like