Filters syntax
The filters language syntax elements:
Single conditions
A single condition always has a form of variable = value, for example:
xyz_1 = "value"The variables consist of alphanumeric characters and _, except the first character which cannot be a digit.
Operators
The single condition value types can have following operators:
Integers and Floats
Available operators: =, !=, >, >=, <, <=
Examples:
x = 5x < 3.6Strings
Available operators: =, !=
Example:
message = "Hello"Booleans
Available operators: =, !=
Example:
isActive = trueLogic operators
Logic operators are and and or. and has higher priority than or, so in a filter like this:
x = 3 and y = 5 and z = 6 or p = 7 and q = 8This will evaluate to the following tree:
Parentheses
You can group conditions with or without parentheses
This
x = 3 and y = 5 and z = 6 or p = 7 and q = 8is equal to this
(x = 3 and (y = 5 and z = 6)) or (p = 7 and q = 8)but we can change the priorities like this:
x = 3 and y = 5 and (z = 6 or p = 7) and q = 8