Boole(expr)
returns
1
ifexpr
evaluates toTrue
; returns0
ifexpr
evaluates toFalse
; and gives no result otherwise.
>> Boole(2 == 2)
1
>> Boole(7 < 5)
0
>> Boole(a == 7)
Boole(a==7)
Boole(expr)
returns
1
ifexpr
evaluates toTrue
; returns0
ifexpr
evaluates toFalse
; and gives no result otherwise.
>> Boole(2 == 2)
1
>> Boole(7 < 5)
0
>> Boole(a == 7)
Boole(a==7)