Jump to content




for syntax


3 replies to this topic

#1 popdog15

  • Members
  • 82 posts

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

#2 CometWolf

  • Members
  • 1,283 posts

Posted 08 March 2014 - 01:26 AM

http://computercraft.info/wiki/Loops

#3 popdog15

  • Members
  • 82 posts

Posted 08 March 2014 - 01:37 AM

 CometWolf, on 08 March 2014 - 01:26 AM, said:

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

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 March 2014 - 12:16 PM

 popdog15, on 08 March 2014 - 01:37 AM, said:

 CometWolf, 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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users