IF/THEN Statements (Pseudocode)
If you have an IF statement and the result is true and you endif, does it automatically go to the end of the loop?
Example:
Code:
DO WHILE StudentNumber <> 99999
IF StudentAverage > 89 THEN
Grade ="A"
ENDIF
IF StudentAverage > 79 THEN
Grade = "B"
ENDIF
ENDO
So if StudentAverage = 92, will it assign Grade = "A", then go to the endo, or will it also assign Grade = "B" becasue 92 is also > 79?
Thanks
__________________
"If you cannot lift the load off another's back, do not walk away. Try to lighten it."
~ Frank Tyger
Last edited by Loup; 10-17-2004 at 02:47 PM..
Reason: Forgot to specify something
|