Code: Select all
Global q; not explicitly specified
Global w = 0; set explicitly
Code: Select all
Global q; not explicitly specified
Global w = 0; set explicitly
Yes, integers are 0, floats are 0.0 and strings are #Null$ (not #Empty$).
Code: Select all
Global s$
If s$ = ""
Debug s$
EndIf
s$ + "h"
Debug s$
Global q
If q = 0
Debug q
EndIf
q+5
Debug q
It's mentioned in the Manual:AZJIO wrote:Is the variable equal to zero when declared
Code: Select all
Global q; not explicitly specified
Debug q ; Shows 0
Code: Select all
Global a
Debug a ; 0
a = 123
; ...
; ...
; ...
Global a ; (not zero-initialized)
Debug a ; 123