In JavaScript:
alert(True > False) -> true
alert(False > True) -> false
Which makes sense as True is 1 and False is 0 ..
But in VBA:
Msgbox(4 > 3) -> true
Msgbox(True > False) -> false
Msgbox(False > True) -> true
Can anyone explain why?
In VBA, True is -1 and False is 0. 🙂 And so all equations are right. See the previous question: If value = true then append 1 else 0 in VBA