Brass Core Plugins

true

Returns a constant that evaluates to true, or true if the conditional also evaluates to true.

Syntax

true(conditional)
true()

Remarks

Use of true as a function is useful if you want to guarantee that the result of a conditional expression evaluates to exactly 1 rather than non-zero.

Examples

Use as a constant.

.echoln true() ; Outputs 1.

Use as a function.

.echoln true(0) ; Outputs 0.

Use as a function.

.echoln true(-100) ; Outputs 1.

See Also