if(): return Pass or Fail from a score
Easy
Return "Pass" when the score is 60 or higher, and "Fail" otherwise.
Read the boundary carefully: a score of exactly 60 is a pass.
Input
ri!score— Integer
ri! Rule Inputs
ri!scoreInteger75
Example 1 — Comfortable pass
Input: ri!score
75
Output:
"Pass"
Example 2 — Clear fail
Input: ri!score
45
Output:
"Fail"
Example 3 — Exactly on the boundary
Input: ri!score
60
Output:
"Pass"
Example 4 — Zero
Input: ri!score
0
Output:
"Fail"
Appian Expression Tips
- • Use
ri!variableNamefor 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