4 ms·
Atari BASIC is close: A = (B < 5) Will put the result of comparison into variable A.
by ddingus 9y ago
Atari BASIC is close:
A = (B < 5)
Will put the result of comparison into variable A.
- classichasclass 9y agoActually, many BASICs will do this. What's unique about the 2600's IF syntax in this situation is that it's functioning almost like a ternary operator.
- ddingus 9y agoAgreed. I was unaware many BASICs will do that. And, yes that is a cool construct. Makes the most of the limited environment.