04-12-2013, 06:55 PM
This topic has been debated before. Unfortunately, no.
Doing that is very ambiguous. Eg.
Which IF is closed by END IF? The 1st or the 2nd one?
There is a rule (when this is hardly implemented) which states it must be the 2nd if.
I've been seriously thinking in this, and the only solution I've come up with is that implementing "Single line" IFs will be exclusive (that is, when enable, END IF will be disabled).
Doing that is very ambiguous. Eg.
Code:
IF A = B THEN PRINT "1st"
PRINT A
PRINT B
IF B = C THEN PRINT "2nd"
PRINT C
END IF
There is a rule (when this is hardly implemented) which states it must be the 2nd if.
I've been seriously thinking in this, and the only solution I've come up with is that implementing "Single line" IFs will be exclusive (that is, when enable, END IF will be disabled).