Fail Variable declaration sintax from manual
Posted: Fri Dec 04, 2020 4:34 pm
Hi,
If i copy and paste this code on a terminal of CCR1009 with routeros 6.47.7 it fails, but on the manual it says it it the correct sintax https://wiki.mikrotik.com/wiki/Manual:S ... #Variables:
this is the output from the terminal:
What is wrong here, why can't I set my value to myvar?
If i copy and paste this code on a terminal of CCR1009 with routeros 6.47.7 it fails, but on the manual it says it it the correct sintax https://wiki.mikrotik.com/wiki/Manual:S ... #Variables:
Code: Select all
:local myVar;
:set myVar "my value";
:put $myVar;
log info $myVar
Code: Select all
admin@Router] > :local myVar;
[admin@Router] > :set myVar "my value";
syntax error (line 1 column 6)
[admin@Router] > :put $myVar;