VBScript CBool Function
Complete VBScript Reference Manual
The CBool function converts an expression to the Boolean type.
The expression must be a number.
Syntax
CBool(expression)
| Parameters | Description |
|---|---|
| expression | Required. Any valid expression. A nonzero value returns True; zero returns False. If the expression cannot be interpreted as a number, a run-time error occurs. |
Example
Example
The example above produces the following output:
True
False
True
Try it »
Complete VBScript Reference Manual