Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript CBool function


May 13, 2021 VBScript


Table of contents


VBScript CBool function

The VBScript CBool function returns an expression of a variable that has been converted to a Boolean sub-type.


VBScript CBool function Complete VBScript reference manual

The CBool function converts expressions to Boolean types.

The expression must be a value.

Grammar

CBool(expression)

Parameters

parameter describe
expression Required.Any effective expression.The non-zero value returns true, and zero returns false.If the expression cannot be interpreted as a value, a Run-Time error occurs.
<script type="text/vbscript">

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

</script>

The above example output results:

True
False
True

Try it out . . .

VBScript CBool function Complete VBScript reference manual