skipping iteration

Results 1 to 3 of 3

Thread: skipping iteration

  1. #1
    Neils Guest

    Default skipping iteration

    Isn&#039t there a way (statement) to skip one iteration of a loop?

  2. #2
    Join Date
    Dec 1969

    Default possibility

    I would say that <BR><BR> ... you should be able to put a conditional next that would iterate the loop around the code you want to execute everytime but a specific time you don&#039t want it to<BR><BR>such that<BR> ( not 100% sure )<BR> for .. <BR> <BR> if blah = 0 then<BR> next<BR> end if<BR><BR> code.....<BR><BR> next

  3. #3
    shaffer Guest

    Default RE: skipping iteration

    You cannot nest an if...then around a next. This is improper syntax. The proper way to do what you are asking (if I understand your question) is (for example, assume we want to skip the third iteration of the loop):<BR><BR> for x = 1 to 50<BR> if x &#060;&#062; 3 then<BR> &#039 (do processing)<BR> end if<BR> next<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts