Microsoft® Visual Basic® Scripting Edition CBool Function |
Language Reference Version 1 |
Returns an expression that has been converted to a Variant of subtype Boolean.
CBool(expression)The expression argument is any valid expression.
If expression is zero, False is returned; otherwise, True is returned. If expression can't be interpreted as a numeric value, a run-time error occurs.