PingOne

Relational operators

The following relational operators are supported by using standard operator notation:

  • Equal

  • Not equal

  • Less than

  • Less than or equal to

  • Greater than

  • Greater than or equal to

Each symbolic operator can also be specified as a purely alphabetic equivalent that is case insensitive.

All operator notations except for ! require a leading and trailing space.

Alphabetic relational operator Examples
  • lt

  • <

5 lt 12

5 < 12

user.activeDays < 30

Because the operator is missing a leading and trailing space, user.activeDays<30 is incorrect.

  • le

6 le 6

6 ⇐ 6

user.activeDays ⇐ 30

  • gt

  • >

12 gt 5

12 > 5

user.activeDays > 30

  • ge

  • >=

12 ge 5

12 >= 5

user.activeDays >= 30

  • eq

  • ==

5 eq 5

5 == 5

user.activeDays == 30

  • ne

  • !=

6 ne 5

6 != 5

user.activeDays != 30

  • not

  • !

not (4 > 3)

!(user.activeDays < 30)

matches

Checks if a value matches the regular expression pattern.

'name' matches '[a-z]+'