Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

Scripting • Re: How should the local variable be called in if?

$
0
0
:log warning [$q]
should not be:
:log warning "$q"

[] execute cmd/function, but you have a string/num.
This is not the root cause, I just want to assign a value to the variable q and found that it is normal within IF! But it cannot be called outside of IF!!!? So use: log warning to see if the assignment is successful~

Statistics: Posted by rosa — Mon Feb 05, 2024 3:51 am



Viewing all articles
Browse latest Browse all 15133

Trending Articles