Page History
Panel | ||
---|---|---|
|
AND
This function returns 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. (optional)
Return type
- boolean
Examples
...
FALSE
...
bgColor | white |
---|
OR
This function returns TRUE if at least one of its arguments evaluates to TRUE; it returns FALSE if none of the arguments evaluate to TRUE.
Syntax
Code Block |
---|
argument1 OR argument2 [OR ...] |
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
...
TRUE
...
TRUE OR ? (= UNKNOWN)
...
bgColor | white |
---|
TRUE
This is the boolean value TRUE.
...
bgColor | white |
---|
FALSE
This is the boolean value FALSE.
...
Panel | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
NOTThis operator reverses the value of its boolean argument. Syntax
Return type
Examples
Include Page | _nav_BackToTop | _nav_BackToTop | |
...
bgColor | white |
---|
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:
...
|