I had a problem with booleans
e.g.
Doesn't text "exist" ever
type whatever
exist as boolean
field2 as integer
endtype
dim win(255) as whatever
win(1).exist=1
if win(1).exist
print "EXIST"
endif
whereas this prints even when it's not supposed to:
type whatever
exist as boolean
field2 as integer
endtype
dim win(255) as whatever
win(1).exist=1
if win(1).exist=1
print "EXIST"
endif
The only way around it was to set an integer equal to the boolean, e.g.
integer1=win(1).exist
and then check if the integer equalled 1, e.g.
if integer1
print "exist"
endif
OR
if integer1=1
print "exist"
endif