VBScript CBool Function

The CBool function converts an expression to type Boolean."

Example

Example

<%

response.write(CBool(5) & "<br />")
response.write(CBool(0) & "<br />")
response.write(CBool(-5) & "<br />")

%>

The output of the code above will be:

True
False
True

❮ Complete VBScript Reference