Skip to main content

using Brackets
using Brackets

This article explains how you can use brackets to separate calculations within expressions (just like you can in mathematics). It also gives you an example knowledge map to explore using brackets inside the Rainbird Studio.

Brackets should be used to separate the different calculations within expressions. In the same way that mathematics works, they are used to indicate that a part of the expression must be solved independently before any other calculations are carried out.

Please continue reading the article following the sub-topics:

  1. using Brackets - Overview
  2. using Brackets - with AND
  3. using Brackets - with OR
  4. using Brackets - with both AND and OR
  5. using Brackets - additional considerations for Boolean operators
  6. using Brackets - Downloadable Model
0 followers
0 questions
0 posts

You will need to register to be able to post or comment on a topic.  

using Brackets - Downloadable Model Rainbird file

Query and Results

When using the map generated by the RBLang below, run the query on the ‘is eligible for’ relationship for an example of a query that uses expressions with brackets.

using Brackets - additional considerations for Boolean operators

When using the boolean operator ‘and’, all elements must be true in order for the overall value to be considered true. If one or all elements are false, then the overall value will be considered false.

This is demonstrated in... (More)

using Brackets - with both AND / OR

You can add a third piece of criteria by adding in extra brackets to accommodate the extra piece of information and to group different elements of an expression accordingly:

In the example expression above, extra brackets have been used around... (More)

using Brackets - with OR

You might want to broaden the eligibility criteria for the bus pass. For example, a person could be eligible for a bus pass when they are aged over 60, OR when they are retired. After all, somebody may be... (More)

.menu.bell.icon {color: #1c083b;}