Answer the question
In order to leave comments, you need to log in
How to reassign the contents of a global variable in Mikrotik?
All the best!
Something I can’t figure out with global variables in mikrotik, either skiing, or I’m doing something wrong ...
If you work with global variables in the console, then everything is OK, no questions asked, but as soon as I put them into the script, it starts confusion.
src of a primitive script: :global myVar "up" ;:put $myVar
if you call it later, it will display
upbecause if you look through the browser, then the system changed the script to:
:global myVar "up" ;:put "up"
:put $myVarthen it doesn't work :(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question