Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript CBool Function

VBScript CBool Function


VBScript reference manual 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 »


VBScript reference manual Complete VBScript Reference Manual