(03-14-2022, 09:49 AM)boriel Wrote: Just for the record(as someone else might find this thread useful):
does not require END IF, howeverCode:IF/ELSEIF .. THEN <something>
THEN at the end of line starts a block which must be closed with END IF.Code:THEN
<something>
END IF : REM required
In the later case you're using
And this is OK, but the END IF if closing the IF T < 10 condition (the ELSEIF ... THEN if followed by such IF, not by an End Of Line, hence no END IF is needed to close it).Code:ELSEIF X = 2 THEN IF T<10 THEN
X = 3
END IF
Okay- I have revisited the code again and is compiling as normal, I have no idea what happened.
Thanks again Boriel