Lua For Variable In Range

Viewed 24842

I can't seem to get this to work. I come from Python, so I tried using the same syntax for the hell of it, but it unsurprisingly wouldn't work:

var = 4

for var in range(2,20) do
print ("var is in range")
      end
2 Answers
Related