Skip to content

Latest commit

 

History

History

criteria

Criteria

Criteria provide convenient expression for conditional logic

The basic expression syntax:

criterion: leftOperand operator rightOperator

operators:

  • =, !=, >=, <=, <, >
  • : assertly operator for contains, RegExpr, ranges etc...

predicate: criterion [logical operator criterion]

logical operators:

  • &&
  • ||

predicate examples :

    $key1 = '123' || key2 > 3
    ($key1 = '123' || key2 > 3) AND $key5:/abc/

Expression with $ is expanded before evaluation if corresponding path exists.