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

Scripting • execute & parse

$
0
0
The topic has been discussed many times, but everything is forgotten when there is little practice...
Is it possible to access a variable whose name is not known in advance to the script function by passing it in a parameter? Something like this...
Code:
:return [[:parse ":global \$1; return [\$1 hello]"]]
or
Code:
:return [:execute ":global $1; :return [$1 hello]"]

Statistics: Posted by Sertik — Sun Mar 24, 2024 7:56 pm



Viewing all articles
Browse latest Browse all 15172

Trending Articles