Expand description
The operator mod contains operators, from which the predicates are defined.
Overview:
| operator | meaning | example |
|---|---|---|
= or == | equal | = 5 or name = "Peter" |
!= | not equal | != 5 or name != "Peter" |
< | less | < 5 |
<= | less equal | <= 5 |
> | greater | > 5 |
>= | greater equal | >= 5 |
len | length of an string | name len 5 |
is_empty | string is empty | name is_empty or name = "" |
contains | string contains other string/char | name contains "Pe" |
starts_with | string starts with string/char | name starts_with "Pe" |
ends_with | string ends with string/char | name ends_with "er" |
one_of | one element from given list | x one_of [1, 3, 7] |
regex | regexpression (feature = “regex”) | x regex "[0-9]{2}" |