Re: incrementing loop indexes
- Posted by Al Getz <xaxo at AOL.COM> Oct 12, 2000
- 362 views
Bernie and Dave wrote in reference to converting a Euphoria program to C code: >> I've found it a pain ... to skip things inside a loop ... << Well what about using the 'continue' statement? For example: y=0; for ( i = 1; i < 5; i++ ) { x = i; if ( x == 1 ) continue; y = y + x; //this is skipped if x=1 because of the continue statement. } Good luck with it, --Al