Function that converts an expression into a boolean ( -1 / 0 ).

      CBool (expression)

The keywords True and False are predefined constants and are interchangeable with the values -1 and 0, respectively.


Dim boolExStaff
boolExStaff = CBool(False)

“The aim of science is not to open the door to infinite wisdom but to set a limit to infinite error” ~ Bertolt Brecht ‘Life of Galileo’

Related VBScript commands

Abs - The absolute value of a number (ignore negative sign)
CByte - Convert to byte.
CCur - Convert to currency (number).
CDate - Convert to Date.
CDbl - Convert to Double (number).
CInt - Convert to Integer (number).
CLng - Convert to Long (number).

Copyright © 1999-2023 SS64.com
Some rights reserved