03-12-2022, 11:06 AM
Further to this I tried it out on an IF/THEN/ELSEIF and found it didn't like it.
e.g.
IF X=1 THEN
X=2
ELSEIF X=2 AND T< 10 THEN
X=3
END IF
replaced with this:
IF X=1 THEN
X=2
ELSEIF X=2 THEN IF T< 10 THEN
X=3
END IF
I guess it is because it is inside an ELSEIF and gets confused as to what should be done ?
e.g.
IF X=1 THEN
X=2
ELSEIF X=2 AND T< 10 THEN
X=3
END IF
replaced with this:
IF X=1 THEN
X=2
ELSEIF X=2 THEN IF T< 10 THEN
X=3
END IF
I guess it is because it is inside an ELSEIF and gets confused as to what should be done ?