CBool

Boolean = CBool ( Expression )

Converts an expression into a boolean.

An expression is false if it is :

An expression is true in all other cases.

Example :

PRINT CBool(0); " "; CBool(1)
=> False True

PRINT CBool("Gambas"); " "; CBool("")
=> True False

PRINT CBool(NULL)
=> False


Referenced by :