IN
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Return True if a value is included in a set or a range of inclusive values.
Syntax
x In (y1 [, ... yn])
x In (y1...yn)
Arguments
-
x
numeric value or string
-
y1 [, ... yn]
a set of numeric or string values
-
y1 ... yn
a range of numeric values
Returns
True when x is included in a set or a range of values
Exceptions
None
Notes
If y1 is a decimal number that defines a range (as in the second syntax), use 2 dots instead of 3 between y1 and yn.
Example
-
1 In (9, 10)
[Returns False since 1 is not included in a set of 9 and 10]
-
2 In (1...10)
[Returns True since 2 is included in a range of 1 to 10]
-
2 In (1.5..10)
-
[Returns True since 2 is included in a range of 1.5 to 10]