skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : True
 

Try Corticon Now

True

SYNTAX

true or T

DESCRIPTION

Represents 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.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

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.

SAMPLE TEST

A sample Ruletest provides three examples. Assume decimal2=10.0 and integer1=5 for all examples. Input and Output panels are shown below: