WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE
The CBool function converts an expression to type Boolean. Its parameter
is expression which describes . Any valid expression. A non zero
value returns True, zero returns False. A run-time error occurs
if the expression can not be interpreted as a numeric value .
The Syntax of the CBool function is :-
Example#1 :-
Code :-
dim a,b
a=5
b=10
document.write(CBool(a) & "<br />")
document.write(CBool(b))
Output :-
True |
Example#2 :-
Code :-
Copy Code
Dim A, B, Check
A = 5: B = 5 ' Initialize variables.
Check = CBool(A = B) '
Output :-
True
|
Example#3 :-
Code :-
A = 0 ' Define variable.
Check = CBool(A) '
Output :-
False.
|
|