if you want an array then i wluld use push
var twos=new Array();
for(i=0;i<=10;++i) {

if(i%2) {


Untested but i cant see why it wouldnt work

Alex Mcauley
----- Original Message ----- 
From: "JoJo" <tokyot...@gmail.com>
To: "Prototype & script.aculo.us" <prototype-scriptaculous@googlegroups.com>
Sent: Thursday, September 24, 2009 11:15 PM
Subject: [Proto-Scripty] Range utility increment

> http://www.prototypejs.org/api/utility/dollar-r
> From the documentation of the Range utility, it seems like it can only
> increment by 1's. For example, $A($R(1,10,true)) gives you:
> [1,2,3,4,5,6,7,8,9,10].
> I'm looking for a way to specify that I want to increment by any
> value. Let's say count up by 2's: [2,4,6,8,10].  How do you do this?
> >

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to