#false = 0
a.l = true
if a
...
endif
if not a
...
endif
what more can i say?

The Basic-Version of the Atari XL/XE do something simulatLCD wrote:Good idea, it works fine in Sinclair BASIC, and this was written in 1982. Another good addition from Sinclair Basic would be the string handling
a$="Test"
res$=a$(2 TO 3)
gives "es" in res$.
Sure, there is MID(), but MID uses a length operator for string length, and a$(2 to 3) uses non-relative position pointers, so they can co-exist.blueznl wrote:a$(2 to 3) might confuse people with string arrays...
and there's mid(), isn't there
Code: Select all
a = 2 ; This will be interpreted as TRUE in a logical statement
b = ~a ; so this should then be FALSE??
if a
Debug "a: TRUE"
else
debug "a: FALSE"
endif
if b
Debug "b: TRUE"
else
Debug "b: FALSE"
endif
Code: Select all
If a=0 ;OR a=#false
a=#true
else
a=#false
endif