Community discussions

MikroTik App
 
gtrappmann
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 67
Joined: Fri Nov 03, 2006 7:42 am
Location: germany
Contact:

script language changes in rel 3 ?

Mon Jul 30, 2007 7:20 pm

hi,

can anybody tell me why this script does not run in rel. 3 ??

:global if-snr [ /interface wireless registration-table get [/interface wireless registration-table find] signal-to-noise ]
:if ($if-snr > 15 ) do={/blink duration=2s}


it was very helpfull for first-check connection...

thanks

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

Re: script language changes in rel 3 ?

Mon Jul 30, 2007 7:54 pm

because you can't use "-" char in variable names. Use:
:global ifSnr 
or
:global "if-snr" 
in this case also referenced variable name should be quoted:
 $"if-snr" 
 
gtrappmann
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 67
Joined: Fri Nov 03, 2006 7:42 am
Location: germany
Contact:

Re: script language changes in rel 3 ?

Mon Jul 30, 2007 9:12 pm

Yeeeehaaa..............



it runs :lol:


thanks a lot

Who is online

Users browsing this forum: fadelliz78, GoogleOther [Bot], nichky and 65 guests