Skip to main content
1/7

and(): check that every condition holds

Easy

Return true when the person is at least 18 and registered.

No if() is needed: and() already returns the Boolean you want.

Inputs

  • ri!age: Integer
  • ri!registered: Boolean

ri! Rule Inputs

ri!ageInteger
20
ri!registeredBoolean
true

Example 1: Adult and registered

Input: ri!age
20
Input: ri!registered
true
Expected output:
true

Example 2: Adult, not registered

Input: ri!age
20
Input: ri!registered
false
Expected output:
false

Example 3: Registered but too young

Input: ri!age
16
Input: ri!registered
true
Expected output:
false

Example 4: Exactly 18 counts

Input: ri!age
18
Input: ri!registered
true
Expected output:
true

Example 5: Neither

Input: ri!age
16
Input: ri!registered
false
Expected output:
false

Appian Expression Tips

  • • Use ri!variableName for rule inputs
  • • Use a!localVariables(local!x: …, body) for locals
  • • Use a!forEach(items: …, expression: fv!item) to iterate
  • • Use where() / reject(fn!isnull, list) to filter