NikhilS / vb2js

Automatically exported from code.google.com/p/vb2js
2 stars 3 forks source link

For... Next with variable negative step #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
s = -5
For i = 10 to 1 Step s
   j = i / 2
Next i

becomes

s = -5;
for (var i = 10; i <= 1; i += s) {
  j = i / 2;
}

Should be >= 1, not <= 1

Original issue reported on code.google.com by nikhilsi...@google.com on 16 May 2010 at 6:10