Show TOC

Background documentationBoolean Expression Locate this document in the navigation structure

 

The Boolean expression is used to test a logical condition according to the rules of boolean logic. For your convenience, BRFplus offers a number of predefined expression templates with two or three operands that cover many use cases. The predefined operations are:

  • Any operand is true

  • All operands are true

  • <1> and <2>

  • <1> or <2> or <3>

  • (<1> and <2>) or <3>

  • (<1> or <2>) and <3>

  • <1> and <2> and <3>

  • Choose your own template

The operands (<1>, <2> etc.) are determined from nested BRFplus objects (context data objects or sub-expressions).

If you have to solve more complex scenarios that are not covered by the predefined operations listed above, you can define your own templates with as many operands as you may need. Supported operators are And, Or, and Not. You can control the logical precedence by enclosing parts of the expression in brackets.