On 14 Apr 2007 at 15:59, M H Stein wrote:
Maybe what's missing in my blathering is that when
BASIC does a
conditional test it's actually looking for a non-zero number in whatever
its argument is, which could be a logical expression (which returns 0 or -1)
or simply a variable.
So instead of IF A <> 0 THEN... you can just say IF A THEN...,
something you'll see throughout my sloppy code ;-).
I tried it again this afternoon and it works as you said. But last
night, I tried it over and over again in my GWBASIC and got the
results that I mentioned. No mistake--I'm certain of it--I had to
repeat it about 5 times to make sure that I wasn't imagining things.
Either that or I need to have my ginger ale tested for hallucinogens.
It DOES point out the obvious need for LET in some cases. LET X=Y=7
is different from X=Y=7.
Cheers,
Chuck