Community discussions

MikroTik App
 
michalkos
newbie
Topic Author
Posts: 49
Joined: Sun Jun 11, 2006 11:33 pm

Dynamic variable

Tue Sep 25, 2007 12:39 pm

I need use dynamic variable:

:local a "b";
:local $a "My text"; > "$a" represent "b" variable
:log info $$a; > wtite "My text"

Last row don't work. Do you now how is correct syntax for get value of "b" variable? I need use dynamic syntax (as PHP) $$a - it represent $b variable.

Thanks.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Dynamic variable

Tue Sep 25, 2007 1:23 pm

It is not possible.