Boolean Demo
Last changed: -66.78.116.108

.

What information is available about a Boolean?

A Boolean type has the following members:

Object Equals(Object obj)
Determine whether this object is equal to another object
Object IfFalse(Block block)
If this object is false, evaluate the block and answer the result of the evaluation; otherwise answer null
Object IfFalseIfTrue(Block falseBlock, Block trueBlock)
If this object is false, evaluate the first block and answer the result; otherwise evaluate the other block and return the result
Object IfTrue(Block block)
If this object is true, evaluate the block and answer the result of the evaluation; otherwise answer null
Object IfTrueIfFalse(Block trueBlock, Block falseBlock)
If this object is true, evaluate the first block and answer the result; otherwise evaluate the other block and return the result
Object Not
Answer the logical reverse of this boolean (true for false; false for true)

Examples

 Topic version: @@topic.Version.IfNull {"'''latest'''"} Else {topic.Version}@@

Topic version: latest