CBool Function
Syntax
CBool(expr)
Group
Description
Converts to a Boolean value. Zero converts to False, while all other values convert to True.
| Parameters | Description |
|---|---|
| expr | Converts a number or string value to a boolean value. |
Sub Main Debug.Print CBool(-1) 'True Debug.Print CBool(0) 'False Debug.Print CBool(1) 'True End Sub