Test In is inside the configured range and outputs either a value for True In or a value for False In. This block supports both value and trend requests.
Values are considered in range if they are greater than or equal to the low limit and less than or equal to the high limit.
If the value is within the range the block outputs a value for True In, otherwise it outputs a value for False In. If the True In slot is not linked the block outputs the default numeric value of one (1). If the False In slot is not linked the block outputs the default numeric value of zero (0). This block is similar to the Deadband Switch Block, except that you configure independent high and low limits instead of the limits calculated from a baseline and deadband.

To view these properties, double-click the block on the Wire Sheet or the block name in the Nav tree.
| Property | Value | Description |
|---|---|---|
| Out | read-only value slot | Outputs either a True In or False In value based on evaluating the Boolean condition.
|
| Test In | value slot | Links from the output of other logic blocks or data sources to supply one or more input values to be tested for validity in the logic block. |
| High Limit In | numeric value slot | Links from the output of other logic blocks or data sources to supply one or more values that define the maximum valid value. |
| Low Limit In | numeric value slot | Links from the output of other logic blocks or data sources to supply one or more input values to define a minimum valid value. |
| True In | optional value slot (defaults to True if not linked) | Links from the output of other logic blocks or data sources to supply one or more valid values to the logic block. |
| False In | optional value slot (defaults to False if not linked) | Links from the output of other logic blocks or data sources to supply one or more invalid values to a logic block. |
Consider a numeric point with an interval history for Zone Temp that is tagged with hs:zoneAirTempSensor and a:a marker tags. An algorithm with a Range Switch Block determines whether the Zone Temp value is greater than or equal to 60 degrees and less than or equal to 80 degrees.

A numeric point with an Analytic Proxy Ext is configured with Data = alg:RangeSwitch, Time Range = yesterday, Rollup = Sum. The algorithm result is the sum of the true (1) and false (0) values during the time range, which indicates how many 15-minute
intervals that the Zone Temp value was within the calculated range.
