←  Ask a Pro

ComputerCraft | Programmable Computers for Minecraft

»

for syntax

popdog15's Photo popdog15 08 Mar 2014

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
Quote

popdog15's Photo popdog15 08 Mar 2014

View PostCometWolf, on 08 March 2014 - 01:26 AM, said:

Thank you! I forget, when in doubt, check the wiki!
Quote

theoriginalbit's Photo theoriginalbit 08 Mar 2014

View Postpopdog15, on 08 March 2014 - 01:37 AM, said:

View PostCometWolf, on 08 March 2014 - 01:26 AM, said:

Thank you! I forget, when in doubt, check the wiki!
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.
Quote