30 if (a<>0 AND b/a=5)

The first condition (a<>0) is NOT met and so, in any other programming
language I use, the second condition isn't even tested, as the result
will be "false" anyway because of this.

Standard BASIC approach is to evaluate first expression, store the result somewhere (stack?), evaluate the second expression and store the result. And then evaluate the AND operand (with parameters already stored - on stack?) as the last.
(Tiny Basic, ZX Spectrum Basic)

Maybe SBasic does the same or similar.
QL-Users Mailing List

Reply via email to