I am going through someone elses code, and have a simple question I want to clarify. I am kind of new to it...
It is a simple goto statement.
In the main program, in a couple of nested for loops, there are a couple of goto statements that are executed only if certain criteria are met. If it is met, the goto statement says "goto S;" When it is executed, it skips any code between that goto statement and S, right? What I am saying is, after S is completed, it doesn't jump back up and contines where the goto S was.
If the goto statements don't get reached, but the main program continues, when it reaches S:, does it perform S:?
I believe so...I think that I am getting my Goto's and functions mixed up.
Hope I make some sense
Thanks.
Nick
It is a simple goto statement.
In the main program, in a couple of nested for loops, there are a couple of goto statements that are executed only if certain criteria are met. If it is met, the goto statement says "goto S;" When it is executed, it skips any code between that goto statement and S, right? What I am saying is, after S is completed, it doesn't jump back up and contines where the goto S was.
If the goto statements don't get reached, but the main program continues, when it reaches S:, does it perform S:?
I believe so...I think that I am getting my Goto's and functions mixed up.
Hope I make some sense
Thanks.
Nick