1163 posts
  • Affiliate Level 2
  • Author Level 6
  • Collector Level 3
  • Top Monthly Author
+6 more
FlashTang
says

Anyone know haxe here ?

for (var j:Float; j < 10; j++ ) {
    //
}

src/Main.hx:92: characters 7-10 : Unexpected var

What is the correct “for” syntax ?

Or no “for loop” in haxe ?

Just 2 stupid questions :p

Thanks

1163 posts
  • Affiliate Level 2
  • Author Level 6
  • Collector Level 3
  • Top Monthly Author
+6 more
FlashTang
says
never mind
for(i in 0...10){
}
by
by
by
by
by
by