CBool Function
SyntaxGroupCBool(expr)
ConversionDescription
Convert to a Boolean value. Zero converts to False, while all other values convert to True.
Parameters Description expr Convert 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