I've a general question about the best practice in programming with function in AutoIT or in general:
supposing to have multiple unrelated variables that you set only inside a function and read outside (after) that function, how would you do?
would you declare them as global at the very beginning of the script? or return the variables from the function as an array (losing the useful variable names)? what's the best/most used practice?
I read that global variables should be avoided... but I