| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 4 of 21 [next] |
|
|
| 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab] |
|
Notes for Slide 04 The above program example has three conditions that could be checked. Item number 1 points out that an elseif-statement will end the list of statements that appear before it. Item number 2 points out that if the condition on any given elseif-statement is true the statements listed below it will run only if the previous conditions where false. It might be easier to understand this by running the code itself: it is tricky to describe in simple sentences the specifics of using the elseif-statement. The nine following slides together with running the program will help more than re-reading the notes on this slide. 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, [Lab] |