milkshake333 Posted August 4, 2010 Posted August 4, 2010 Hi, I don't know if it's the right section, but I think it's the right one. Is it possible to label a bunch of code and then go to it with the function goto label. Like: (I know this code isn't anything, just for an example ) A: if a == b then a = a + b end and then later on in your script if a == b then goto A end So my question is: Is this possible, if yes, how? Greetz, MILKSHAKE.
x86 Posted August 4, 2010 Posted August 4, 2010 What's wrong with this? function FuncA() if a == b then a = a + b end end if a == b then FuncA() end
milkshake333 Posted August 4, 2010 Author Posted August 4, 2010 Hmm, you actually brought me on an idea . First I thought that wasn't possible, but after some more thinking I think I can make it that way. Ty
50p Posted August 4, 2010 Posted August 4, 2010 Hmm, you actually brought me on an idea . First I thought that wasn't possible, but after some more thinking I think I can make it that way. Ty This is what you should do even in languages which support goto.
dzek (varez) Posted August 4, 2010 Posted August 4, 2010 and tbh - try avoid programming based on "goto" idea - it's nothing good
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now