True
- Last Updated: March 24, 2022
- 1 minute read
- Corticon
- Version 6.3
- Documentation
SYNTAX
true or TRepresents Boolean value true. Recall from the discussion oftruth values
that an <expression> is evaluated for its
truth value, so the expression Entity1.boolean1=true
will evaluate to true only if boolean1=true. But since boolean1 is Boolean and has a truth value all by itself without any
additional syntax, we do not actually need the “=true” piece of the expression. Many examples in
the documentation use explicit syntax like boolean1=true or boolean2=false for
clarity and consistency, even though boolean1 or
not boolean2 are equivalent logical
expressions.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
The following Rulesheet uses true in a
Precondition to Ruletest whether boolean1 is true,
and perform the Nonconditional computation if it is. As discussed above, the
alternative expression Entity1.boolean1 is
logically equivalent.
A sample Ruletest provides three examples. Assume decimal2=10.0 and integer1=5 for all examples. Input and Output panels are shown
below: