On 09/22/1999, 5:02:14 PM, Steve Kramer <[EMAIL PROTECTED]> wrote 
regarding Re: Digest metacard.v003.n077:

> In refernce to incrementing the variable in a repeat loop to process 
every third line, why not just
> have the following?

> repeat with n=1 to somenum
> if n mod(3) <> 0 then next repeat
> do whatever
> end repeat

Or you could get really clever and assume implicite negation:

  repeat with nIncrement = 1 to nTarget
  if nIncrement mod(3) then next repeat
  doYourThing
  end repeat

or:

  repeat with nIncrement = 1 to nTarget
  if not ( nIncrement mod(3) ) then doYourThing
  end repeat

:D

--WthmO


Reply via email to