Quote: "Not true, you can as long as you use an ENDIF. Using THEN means everything after the THEN (even after colons) is counted in the IF statement."
Yes, you're right about that. I was referring to using the IF-THEN style statement (in which you are forced to separate the lines), rather than IF-ENDIF.
Quote: "Sounds like a syntax parsing bug to me. I can't think of why it would want to work that way?"
Mostly if you have a "short" IF statement that composes of just a few commands in a block. Using the IF-THEN style will cause the rest of the line of code to be associated with that IF block, without you having to explicitly close the block.
So instead of:
if (conditional = value)
print "moving"
move object 1, 10
print "done moving"
endif
You could shorten it to:
if (conditional = value) then print "moving" : move object 1, 10 : print "done moving"
It's not an error, it's just a "shortcut". Problem is that it can introduce errors into your code if you aren't aware of it.