CBool Function

Syntax:

CBool(Num|$)

Group: Conversion

Description:
Convert to a boolean value. Zero converts to False, while all other values convert to True.

Parameter Description

Num|$ Convert a number or string value to a boolean value.

Example:

Sub Main
  Debug.Print CBool(-1) 'True
  Debug.Print CBool(0) 'False
  Debug.Print CBool(1) 'True
End
Sub