-----------Original Message:
Date: Sat, 14 Apr 2007 07:51:58 -0700
From: "Chuck Guzis" <cclist at sydex.com>
Subject: Re: HP "calculators" (was Re: World's first computer on
ebay!)
Yes, it's true that BASIC doesn't differentiate lexically between the
assignment operator and equality test, but that seems to be unrelated
to the behavior of the two statements I gave. In fact, I don't know
what the operation performed by GWBASIC is in "X=Y=7".
Cheers,
Chuck
-------------Reply #2:
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 ;-).
m