in_range

Determines if "expression1" exists in a given list of constant values or ranges.

Syntax

expression1 in_range { constant : constant [ , constant : 
constant ] } 

Example 1

[code] in_range { 5 }

Result

This is equivalent to [code] = 5.

Example 2

[code] in_range { 5: }

Result

This is equivalent to [code] >= 5.

Example 3

[code] in_range { :5 }

Result

This is equivalent to [code] <= 5.

Example 4

[code] in_range { 5:10 }

Result

This is equivalent to ( [code] >= 5 and [code] <= 10 ).

Example 5

[code] in_range { :5,10,20: }

Result

This is equivalent to ( [code] <= 5 or [code] = 10 or [code] >= 20 ).