At this time it is only one Syntax of IF / THEN / ELSE / (ELSES) / END IF allowed:
IF x=y THEN {your Code} END IF
and
IF x=y THEN {your Code} {your Code} ............ so many rows if you want ELSE {your Code} {your Code} ............ so many rows if you want END IF
IF x=y THEN {your Code} {your Code} ............ so many rows if you want ELSES {your Code} ............ only one row and no END IF
When you forgot the THEN, BasPas put them on the end for you. |