CBool

CBool(Expression) As Boolean

CBool is used to convert values to a Boolean type. All numbers are parsed as zero/not-zero. Strings are parsed as 'True' or 'False'

a = CBool("test") 'Raises an error. Only strings True and False are accepted.
b = CBool(1) 'True
c = CBool(0.0) 'False
d= CBool(True) 'True

See also: