3 ms·
The "IF statement is an expression" functionality is neat. I don't think I've seen another BASIC that does that.
by EvanAnderson 9y ago
The "IF statement is an expression" functionality is neat. I don't think I've seen another BASIC that does that.
- ddingus 9y agoAtari 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.