lang • cbool

CBool

Result = CBool ( Expression ) AS Boolean

Converts an expression into a boolean.

An expression is false if it is:

Examples

Print CBool(0);; CBool(1)
False True
Print CBool("Gambas");; CBool("")
True False
Print CBool(Null)
False

See also