Promotic
WikipediaLinkedInYoutubeTwitterFacebook

CBool - function of language VBScript

Description:
Returns an expression that has been converted to type Boolean.
Syntax:
CBool(expression As Variant) As Boolean
Calling:
b = CBool(expression)
Parameters:
expression(Variant) Any valid expression.
Note:
If expression is zero, false is returned; otherwise, true is returned. If expression can't be interpreted as a numeric value, a runtime error occurs.
Example:
Dim A, B, Check
A = 5: B = 5
Check = CBool(A=B) 'Check contains true
A = 0
Check = CBool(A) 'Check contains false
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice