in reply to Re: Iteration condition...
in thread Iteration condition...

I don't know, I think a state machine may be overkill for something with only two states ("started" and "finished" from the looks of the OP).

Replies are listed 'Best First'.
Re^3: Iteration condition...
by CountZero (Bishop) on Mar 31, 2008 at 19:17 UTC
    May be, but as the OP refered to HTML it will not end with two states and then having a look at the code of those modules can do no harm.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James