Computer Science for IGCSE & O level - Programming (Section 6 - No. 16)

What is the purpose of the `ELSE IF` statement?
To define a new condition after the `ELSE` statement
To test another condition if the initial `IF` condition is false.
To mark the end of the `IF` statement.
To specify the code that will be executed if none of the preceding conditions are true.

Explanation

ELSE IF allows you to test additional conditions within the same IF statement.

Comments (0)

Advertisement