Gentlemen;
I have a logic structure that contains multiple nested structures. All works well. Now, however, I have a situation where when a certain condition is true in one structure, the logic should reset several variables then break but resume execution within another/different logic structure.
As an example, in perl, one could label the structure blocks (i.e.: _name
then in lieu of break use "last _name" and the logic would immediate exit to the end of the structure with the name referenced and resume from there.
In other languages, perhaps one could use a goto like command but those are not available I believe in php.
So, I am asking/looking for ideas/examples of how other may accomplish this feat? Please provide some ideas, suggestions, etc?
Thanks
Bob
I have a logic structure that contains multiple nested structures. All works well. Now, however, I have a situation where when a certain condition is true in one structure, the logic should reset several variables then break but resume execution within another/different logic structure.
As an example, in perl, one could label the structure blocks (i.e.: _name
In other languages, perhaps one could use a goto like command but those are not available I believe in php.
So, I am asking/looking for ideas/examples of how other may accomplish this feat? Please provide some ideas, suggestions, etc?
Thanks
Bob