Community discussions

MikroTik App
 
chuq
newbie
Topic Author
Posts: 41
Joined: Sun Nov 27, 2022 2:18 pm

Global var scope and lifetime

Thu Dec 01, 2022 7:29 pm

What's the scope and lifetime of a global variable ?
I put a script in scheduler at system startup, it creates a bunch of global vars, but I don't see them in the environment
Should I move my code out of named script ? Or how do I make them available from other places/scripts ?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Global var scope and lifetime

Thu Dec 01, 2022 7:37 pm

show your code
 
chuq
newbie
Topic Author
Posts: 41
Joined: Sun Nov 27, 2022 2:18 pm

Re: Global var scope and lifetime  [SOLVED]

Fri Dec 02, 2022 6:48 pm

show your code
As it turned out, I had a syntax error in my script, and the system didn't bother to tell me about it (what a shame!), and just ignore my script completely 🤷‍♀️

Who is online

Users browsing this forum: No registered users and 21 guests