Top  | Previous | Next

Switch

The switch block is very similar to the expression block, except that the result of the expression does not need to be a boolean. Instead, it can be a number or string, and it will be looked up against the defined list of expected results. If a match is found, the alarm will follow that path, otherwise the "catch all" output will be used.

 

For example, imagine that the alarms in the system have associated data for the "Area" that they belong to (the display path could also be used, but would likely contain additional information). If all alarms were categorized according to the area, such as "Area 1", "Area 2", then a switch block could be defined as such:

Expression: {Area}

Values:

Area 1

Area 2

Area 3

 

If an alarm did not have an area, or belonged to a different area, the "catch-all" branch would be used.