[thelist] ASP - if x = every nth?
Matt Warden
mwarden at gmail.com
Wed Jun 6 11:27:20 CDT 2007
On 6/6/07, Jon Hughes <hughesj at firemtn.com> wrote:
> Thank you all for that :)
>
> What about if it's not even?
>
> Example:
>
> if i = 4 or i = 9 or i = 14 or i = 19 or i = 24 or i = 29 or i = 34 or i
> = 39 or i = 44 or i = 49 then
>
> if (I mod 4) = 0 then
>
> does not do the same thing.
That is because you are not asking the same question. You have an
offset, so you must include that in the calculation.
if (i - 4) mod 5 = 0 then
--
Matt Warden
Cleveland, OH, USA
http://mattwarden.com
This email proudly and graciously contributes to entropy.
More information about the thelist
mailing list