TRUE (-- trueCondition)
Inputs
- None.
Outputs
trueCondition:TRUEcondition constant.
It always pushes the known Cond object TRUE.
TRUE is one of the two fixed known Cond constants. The other fixed value is FALSE. The configuration-dependent known Cond object is DEBUG.
An operation whose result is described as TRUE yields a Cond object whose value is true. Such a result need not be known at compile time. printStack shows a known true Cond as TRUE and an unknown Cond as Cond.
Behavior
- Because the result is known, it drives compile-time condition handling directly.
Example
{} 0 {} [
TRUE [1] [2] uif printStack _:;
0
] "main" exportFunction
Expected Output During Compilation
1
See also
DEBUGbuiltin(-- debugCondition)Pushes a known Cond that reports whether debug mode is enabled.FALSEbuiltin(-- falseCondition)Pushes the false condition object.ifbuiltin(inputs... condition trueCallable falseCallable -- outputs...)Calls one of two Blocks; unknown conditions require both branches to be compiled and merged.uifbuiltin(inputs... condition trueCallable falseCallable -- outputs...)Processes one of two Blocks inline, depending on a known Cond object.