This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
popdog15's profile picture

for syntax

Started by popdog15, 08 March 2014 - 12:06 AM
popdog15 #1
Posted 08 March 2014 - 01:06 AM
Hello. I've recently taken a break from lua and went to python for a while, and I can't really remember the syntax for like "for i in x do". I know that's not right, as it's telling me it's expecting an "," but I don't know where. You can see where I'm attempting to do this on line 18 of http://pastebin.com/kVGg0gDD
CometWolf #2
Posted 08 March 2014 - 01:26 AM
http://computercraft.info/wiki/Loops
popdog15 #3
Posted 08 March 2014 - 01:37 AM
Thank you! I forget, when in doubt, check the wiki!
theoriginalbit #4
Posted 08 March 2014 - 12:16 PM
when in doubt it's better to check the Lua manuals before the ComputerCraft wiki, unless its ComputerCraft specific functions like to do with Turtles and stuff.