From what I gathered, "return" is not used anymore to terminate a hotkey or function call. But I also have areas in my code, that are not bound by braces {}. Do I still need "return" after those lines?
Case in question: I build groups (AddGroup) and menus at the top of my script. Should I end this section with "return" as in v1 or not?
Return or not — that is the question Topic is solved
-
- Posts: 77
- Joined: 08 Aug 2015, 10:22
Re: Return or not — that is the question
Inside functions you don't need to put a return unless you want to return something return ThisVar
As for the auto-execute section (top of the script) see this previous thread viewtopic.php?f=82&t=114719
As for the auto-execute section (top of the script) see this previous thread viewtopic.php?f=82&t=114719
Re: Return or not — that is the question
From the documentation: Script Startup (the Auto_execute Thread).
-
- Posts: 77
- Joined: 08 Aug 2015, 10:22
Re: Return or not — that is the question
Thank you, both. I hope I got it now.
I will not put an insert after building my groups and menus.
I will not put an insert after building my groups and menus.
Who is online
Users browsing this forum: Bing [Bot], Jobber and 49 guests