Closed Atari2 closed 3 years ago
i mean, to be precise, it doesn't consider the condition false, it just doesn't realize there's a condition there at all. and since this is in an inactive if statement, there are no unknown command errors either. anyways, fixed now. i also made it an error to have endif with arguments, though i doubt anyone would hit that.
When
elseif
is written likeelse if
asar will not throw an error but instead it'll just consider the statement following the else if automatically false. Snippet of code to reproduce:This'll write $02 instead of throwing an error (or writing $01, but we all know asar hates whitespace). Screenshot to already ran example with counterexample: here