Template:Computer Programming/Control/1.2

From Wikibooks, open books for an open world
Jump to: navigation, search

Only one statement in the entire block will be executed. This statement will be the first one with a condition which evaluates to be true. The concept of an if-else-if structure is easier to understand with the aid of an example: