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. -----Original Message----- From: thelist-bounces at lists.evolt.org [mailto:thelist-bounces at lists.evolt.org] On Behalf Of Ross DeMeyere Sent: Wednesday, June 06, 2007 8:40 AM To: thelist at lists.evolt.org Subject: Re: [thelist] ASP - if x = every nth? How about: if (i mod 5) = 0 then Ross DeMeyere demeyere.com