YouTip LogoYouTip

Func Cbool

# VBScript CBool Function * * Complete VBScript Reference Manual](#) * * * The CBool function converts an expression into a Boolean type. The expression must be a numeric value. ### Syntax CBool(expression) | Parameter | Description | | :--- | :--- | | expression | Required. Any valid expression. Non-zero values return True; zero returns False. If the expression cannot be interpreted as a number, a runtime error occurs. | ## Example ## Example document.write(CBool(5) & "
") document.write(CBool(0) & "
") document.write(CBool(-5) & "
") The output of the above example is: True False True [Try it Β»](#) * * Complete VBScript Reference Manual](#) AI is thinking... [](#)(#) (#)[](#) [VolcEngine Coding Plan supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, etc., with official direct supply for stability and reliability. Β₯9.9/month Activate Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
← Func CbyteFunc Asc β†’