07-21-2014, 12:08 PM
If you type the following code into a CAS program...
... then exit the program editor, then edit the program again, you'll see that it has turned into this:
The ELSE IF turned into ELIF, and one of the ENDs is gone. I don't see ELIF mentioned in any of the docs. Is this new in rev 6030? Borrowed syntax from C or C++ perhaps?
Code:
(x)->BEGIN
IF 1==2 THEN x:=3;
ELSE IF 4==4 THEN x:=5; END; END;
RETURN(x);
END;
... then exit the program editor, then edit the program again, you'll see that it has turned into this:
Code:
(x)->BEGIN
IF 1 = 2 THEN x:=3;
ELIF (4==4) THEN x:=5; END ;
RETURN(x);
END;
The ELSE IF turned into ELIF, and one of the ENDs is gone. I don't see ELIF mentioned in any of the docs. Is this new in rev 6030? Borrowed syntax from C or C++ perhaps?