Full BASIC has two types of IF, IF-block, which is written spanning multiple lines, and IF-statement, which is written in a line.
Examples
10 IF a=10 THEN 20 LET a=0 30 END IF |
10 IF a=10 THEN LET a=0 |
When an imperative statement is written following THEN without a line break, that is an IF-statement, so no END IF follows. But an IF-statement can include only one imperative statement.
In addition, IF-statement has the following form
IF THEN a condition THEN an imperative statement ELSE an imperative statement
In this case, only one statement can be written between THEN and ELSE, and after ELSE, respectively.
Note.
Full BASIC is a language in which a line is a fundamental building block.