CBool Function |
Syntax:
Group:
Description:
Converts to a boolean value. Zero converts to False, while all other values convert to True.
Parameters
Parameter |
Description |
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
EndSub