"If Not a" is also not allowed, according to the international PureBasic programming language standard.PMV wrote:Its always the same ... just because something that was never
allowed to be was just used because it seemed to work fine.
Now it is disallowed and some people are going crazy.
Code: Select all
s.s = "string"
If s
Debug s
EndIf
;If Not s ; already forbidden
; Debug "s empty"
;EndIf
a.i = 10
If a
EndIf
If Not a
EndIf
Always write "If a <> 0" and "If Not a <> 0" etc.
For me, "If a" and "If s" make both sense. The opposite of both is "If Not a" and "If Not s", which makes sense, too.