VBScript CBool Function
Complete VBScript Reference
The CBool function converts an expression to type Boolean.
Syntax
Parameter |
Description |
expression |
Required. Any valid expression. A nonzero value returns
True, zero returns False. A run-time error occurs if the expression can not
be interpreted as a numeric value |
Example 1
dim a,b
a=5
b=10
document.write(CBool(a) & "<br />")
document.write(CBool(b))
Output:
True
True
|
Complete VBScript Reference
|
|
|