Page History
Learn more about the logical functions AND, OR, NOT, logical values TRUE, FALSE, and the special meta-value UNKNOWN.
Overview
Function / value | Description |
---|---|
AND | Returns |
Table of Contents | ||
---|---|---|
|
UI Text Box | ||
---|---|---|
| ||
Boolean conditions are evaluated from the left to the right. There is no order for the logical operators. Use parentheses to create hierarchy in your logical expressions. Example: TRUE OR (TRUE AND FALSE) will evaluate (TRUE AND FALSE) first. |
...
bgColor | white |
---|
AND
...
TRUE if all its arguments evaluate to TRUE; it returns FALSE if one or more arguments evaluate to FALSE. |
Syntax
Code Block |
---|
argument1 AND argument2 [AND ...] |
- argument1 - The first boolean condition that you want to evaluate.
- argument2 - The first boolean condition that you want to evaluate.
- [AND …] - Additional boolean conditions that you want to evaluate.
Return type
- boolean
Examples
- TRUE AND TRUE results in TRUE
- TRUE AND FALSE results in FALSE
- TRUE AND ? (= UNKNOWN) results in UNKNOWN
...
bgColor | white |
---|
OR
...
TRUE if at least one of its arguments evaluates to TRUE; it returns FALSE if none of the arguments evaluate to TRUE |
...
Syntax
...
. |
...
argument1 - The first boolean condition that you want to evaluate. argument2 - The first boolean condition that you want to evaluate. [OR …] - Additional boolean conditions that you want to evaluate.
Return type
- boolean
Examples
...
...
...
bgColor | white |
---|
...
Use the '?' (question mark), representing UNKNOWN, to check if an expression or an attribute has a value. |
TRUE | This is the boolean value TRUE. |
...
...
FALSE | This is the boolean value FALSE. |
...
Functions
...
Include Page |
---|
Panel | ||
---|---|---|
| ||
NOTThis operator reverses the value of its boolean argument. Syntax
Return type
Examples
|
...
bgColor | white |
---|
|
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
UNKNOWN
You can use the '?' (question mark), representing UNKNOWN, to check if an expression or an attribute has a value.
Example
Suppose a model with an entity Person and attributes Person.name and Person.age. In runtime, a user fills out a form and enters his name, but forgets to fill out his age.
As a result
...
...