ForΒΆ

  • Single statment for loop
for(local i = 0, i < 100, i++) {
        if (i == 10) continue
        if (i++ > 50) break

        print("hello")
}
  • Prints this 50 times
  • Multi statment for loop
for(local i = 0; local i2 = 0, i < 100, i++; i2++) {
        if (i == 10) continue
        if (i++ > 50) break

        print("hello", i2) // prints this 50 times
}
  • Prints this 50 times