Code: Select all
If SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R" Or REF$ = "1": Goto SKIPSOMETHING: EndIf
; Do Something
SKIPSOMETHING:
Code: Select all
If SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R": Goto SKIPSOMETHING: EndIf
If REF$ = "1": Goto SKIPSOMETHING: EndIf
; Do Something
SKIPSOMETHING:
to the Do Something code. But if I do the below, it works as intended. Note
the parenthesis.
Code: Select all
If (SRC$ <> "F" And SRC$ <> "K" And SRC$ <> "R") Or REF$ = "1": Goto SKIPSOMETHING: EndIf
; Do Something
SKPSOMETHING:
PureBasic handles And/Or operations.
Would someone share their thoughts, please?
Thanks in advance.