Monsterman22
Member
Hello. I had some hardship with "OR" keyword.
If Boolean = True OR Value = 0 then
.....do something
End If
I was expecting the line above to check both values, but if Boolean = False
variable Value is not checked and ....do something is not executed even if
Value = 0
Is such behavior supposed to be correct?
In the code attached if line 21 quoted out the prog does what is expected. But if
line 21 unquoted and line 22 quoted out - nothing happens.
I think the meaning of the word "OR" implies diff behavior.
If Boolean = True OR Value = 0 then
.....do something
End If
I was expecting the line above to check both values, but if Boolean = False
variable Value is not checked and ....do something is not executed even if
Value = 0
Is such behavior supposed to be correct?
In the code attached if line 21 quoted out the prog does what is expected. But if
line 21 unquoted and line 22 quoted out - nothing happens.
I think the meaning of the word "OR" implies diff behavior.
Attachments
Last edited: