Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Published by Scroll Versions from space WDESIGNER and version 24.0
The following boolean operators can be used when defining conditions, for instance at decision points or in boolean expressions:
- and
- or
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
set aBoolean = b1 or b2; set s = condition (b1 and b2, "abc", "xyz"); |
Short-Circuiting
The boolean operators of the Designer support short-circuiting. This means that the second operand is evaluated only when the result is not fully determined by the first operand.
For instance, you can use the following guard expression for a decision:
Code Block | ||||
---|---|---|---|---|
| ||||
aString.exists() and aString like "Hello World!"; |
If aString has not been created yet, the second operand aString like "Hello World!" will not be evaluated.
Panel | ||
---|---|---|
| ||
|
Overview
Content Tools