Just for the record
(as someone else might find this thread useful):
does not require END IF, however
THEN at the end of line starts a block which must be closed with END IF.
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).
(as someone else might find this thread useful):Code:
IF/ELSEIF .. THEN <something>Code:
THEN
<something>
END IF : REM requiredIn the later case you're using
Code:
ELSEIF X = 2 THEN IF T<10 THEN
X = 3
END IF

