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

go to line

Started by Crowdy199, 15 July 2013 - 06:54 PM
Crowdy199 #1
Posted 15 July 2013 - 08:54 PM
is there a way i can jsut say in my code go to line 84 or something like that
MR_nesquick #2
Posted 15 July 2013 - 09:22 PM
while you're editing?
Crowdy199 #3
Posted 15 July 2013 - 09:52 PM
code to put in editing like if it is line 5 of the code and i put code on line 5 to skip to line 67
MR_nesquick #4
Posted 15 July 2013 - 10:05 PM
are you using functions in your code?

hard to see what you're after when i can't see the code . do you mind upload your code to pastebin or here?
Crowdy199 #5
Posted 15 July 2013 - 10:08 PM
i have functions but i want to jump inside the middle of a function
MR_nesquick #6
Posted 15 July 2013 - 10:16 PM
in that case, i dunno. sorry :(/>
but i don't think it's posibble
ElvishJerricco #7
Posted 15 July 2013 - 11:19 PM
i have functions but i want to jump inside the middle of a function

Lua doesn't have this feature. Many old timey languages do. It's called "goto." Goto is generally considered awful. It's a dirty way to organize code when you should probably just be using loops or functions.