2/8/00
COM1100 Winter2000 Yuhong Yin
5
How it works?
nEach condition is evaluated in the order in which it appears in the statement nIf the first condition is true, the corresponding statement is executed and the remainders of the statement in the chain are not executed.
nThe final else is optional.
nThe last statement is only executed if none of the previous condition were true.
n