IF a = TRUE THEN
DEBUG "hello"
This no longer makes the compiler complain, it used to, right? No showstopper, just caused some confusion tonight :-)
interesting.
Just tested it, but the compiler will handle this as two separate command lines. Means line "DEBUG "hello" is executed in any case, even if a = FALSE
I'm not sure if this worked before.
Last version I have is 7.242(i think) and that would for sure crash if I left an open THEN. I try not to use it either.
I put in a request ages ago that THEN become an optional keyword for multi line conditions. Gernot wasn't keen on the idea, so I doubt it's been implemented.
IF xxx
yyy
ENDIF
_OR_
IF xxx THEN yyy
No then for multiline IF
that's clear, but it wasn't the question :)
We were just wondering about that a command like
IF a = TRUE THEN
without anything following the THEN doesn't cause an error
Because newline and ; are a command in my parser. I'll add an error. Doh!