07-07-2005 11:54 AM
07-07-2005 12:00 PM
As a thread from earlier today or yesterday was describing, no, there is no way to terminate a FOR loop early (and still have the program running), but there are some no too pretty work arounds. Similarly there is no way to jump out of a sequence structure, one of the reasons that most of us will recommend some variation of a state machine instead, where having an "event" occur during the sequential execution of the states can cause it to go to the appropriate state to handle it. In the case of the FOR loop (no pun intended) the usual suggestion is restructuring the loops logic and placing it in a WHILE loop, which can be terminated (keeping in mind that it will always execute once, regardless of the termination node's state).
P.M.
07-07-2005 12:11 PM