[thelist] ASP - if x = every nth?

Jeffrey Barke jeffrey.barke at themechanism.com
Wed Jun 6 11:39:03 CDT 2007


Jon,

The principle is the same, you just need an offset.

If (i mod 5) - 1 = 0 Then

Jeffrey

--
Cheers.
Jeffrey Barke
jeffery.barke at theMechanism.com
Lead Developer, US
theMechanism - New York City
440 9th Avenue, 8th Floor
New York, NY 10001-1631
t: +1 212.404.3150
c: +1 917.941.1232
f: +1 212.404.3228



http://www.theMechanism.com

Subscribe to theMechcast, our monthly Podcast:
http://feeds.feedburner.com/theMechcast

theMechanism - London
3rd Floor
405 The Strand
London E14 9FW
United Kingdom
t: +44 (0)20 7240 4942
f: +44 (0)20 7240 2262

--
The information contained in this Electronic mail message is attorney  
privileged and confidential information intended only for the use of  
the individual or entity named above. Such information also is  
intended to be privileged, confidential, and exempt from disclosure  
under applicable law. If the reader of this message is not the  
intended recipient or the employee or agent responsible to deliver it  
to the intended recipient, you are hereby notified that any  
dissemination, distribution, or copying of this communication is  
strictly prohibited. If you have received this communication in  
error, please notify us immediately by telephone.

Blah, blah, blah...
--


On Jun 6, 2007, at 12:14 PM, Jon Hughes 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.
>
> -----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
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list