[thelist] ASP - if x = every nth?

Joel D Canfield joel at streamliine.com
Wed Jun 6 11:27:01 CDT 2007


> 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

so, you're looking for 'every fifth, starting with i'

if mod((x-i)/5) = 0 where 'x' is the number you're checking, and 'i' is
the first number in the series

why are we counting by fives? why is there an upper limit? we might
could offer the best suggestions if we had a better idea what the real
goal is.

joel



More information about the thelist mailing list