It's simple really, as an example in pseudo code:
code:
if x equals 0 then
let x equal 1
if y equals 0 then
let y equal 1
end if
end if
The logic is: first, the value of x is checked to see if it is equal to 0. If so, it enters the loop, if not it exits the loop, which happens to be the end of my code snippet.
So lets say x does equal 0. then x is changed to 1. then y is checked the same way as x.
CLEARER: The second if statement (y) is only executed if the first if statement (x) is evaluated as true.
And the concept is the same no matter how many levels deep you nest your if loops.
[This message has been edited by cense (edited 10-10-2002).]