Page History
Page properties |
---|
| |||||||
|
|
|
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
On this page
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
The JWT |
Overview
The JWTexpression parser accepts the most common comparison operators |
as well as logical operators . The main purpose of these operators is to construct complex logical comparisons by linking individual expressions. |
Excerpt |
---|
Comparison operatorsThe operators |
, their meaning |
and the applicable data types you can use them with are listed below.
Code Block |
Code Block |
Code Block |
Info |
[1, 1, 2] in [2, 1, 1, 1, 4] , cardinalities of every single element must match.
2 in [1, 2, 3] "blue" in
5 not in [1, 2, 3, 3, 4] "orange" not in
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Info | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
The following comparison operators are applicable to
All operators ignore the case of the characters. |
true
) =~
"HELLO" =~ "Hello"
"up" =~ "UP"
["blue", "red", "green"] =~ ["Blue", "RED", "Green"]
!=~
" HELLO" !=~ "Hello"
"up" !=~ "down"
("up" !=~ "UP") = false
["blue", "red"] !=~ ["Blue", "green"]
["blue", "red"] !=~ ["Red", "BLUE"]
(["blue", "red", "green"] !=~ ["Blue", "RED", "Green"]) = false
~~
"Hello World!" ~~ "world"
, checks whether a string contains a substring. "A small step for a man" ~~ "STEP"
, checks whether a string contains a substring. ["one", "two", "three"] ~~ ["TWO", "One"]
, checks whether a string list contains all the elements of another string list. !~~
"Hello World!" !~~ "bye"
, checks whether a string doesn't contain a substring. "A small step for a man" !~~ "big"
, checks whether a string doesn't contain a substring. ["one", "two", "three"] !~~ ["Four"]
, checks whether a string list doesn't contain one element of another string list. (["one", "two", "three"] !~~ ["TWO"]) = false
in~
"world" in~ "Hello World!"
, checks whether a substring is contained in another string. "STEP" in~ "A small step for a man"
, checks whether a substring is contained in another string. ["TWO", "One"] in~ ["one", "two", "three"]
, checks whether all the elements of a string list are contained in another string list. not in~
"bye" not in~ "Hello World!"
, checks whether a substring is not contained in another string. "big" not in~ "A small step for a man"
, checks whether a substring is not contained in another string. ["Four"] not in~ ["one", "two", "three"]
, checks whether any of the elements of a string list are not contained in another string list. (["TWO"] not in~ ["one", "two", "three"]) = false
any in~
["blue", "violet"] any in~ ["Blue", "Red", "Green"]
["Five", "One"] any in~ ["FOUR", "FIVE", "SIX"]
none in~
["Orange"] any in~ ["red", "blue", "green"]
(["orange"] any in~ ["Red", "Orange"]) = false
|
UI Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Below you find a comprehensive matrix of all operators and applicable data types .
|
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Logical operators
The table below lists all logical operators that can be used for linking logical terms in an expression.
Logical operators take logical terms (which return
Status | ||||
---|---|---|---|---|
|
- a boolean value
- a JWT expression parser function returning a boolean value
- a comparison
- a logical term enclosed by brackets ()
- two logical terms connected with a logical operator, where boolean literals and comparisons themselves are logical terms.
UI Text Box | ||
---|---|---|
| ||
Logical operators can only be used in logical expressions in the Logical mode or in combination with the conditional operator. |
UI Expand | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||
|
Conditional operator
The conditional operator ? :
is a powerful operator to construct conditional expressions.
It basically allows you to construct the following expression: IF logical_expression true
THEN term_1 ELSE term_2.
Code Block | ||
---|---|---|
| ||
<logical_expression> ? <term_1> : <term_2> |
UI Text Box | ||
---|---|---|
| ||
The conditional operator is extremely helpful when being used in calculated fields. |
UI Expand | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||
|
List operators
Page properties report | ||||||
---|---|---|---|---|---|---|
|
UI Expand | |||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
If you use multiple operators in a single expression, they will follow a certain order in which they are processed or a precedence.
|
UI Text Box | ||
---|---|---|
| ||
|
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Logical operators
The table below lists all logical operators that can be used for linking logical terms in an expression.