Community discussions

MikroTik App
 
drdotti
just joined
Topic Author
Posts: 16
Joined: Sat Mar 17, 2012 4:15 pm

BUG: Skripting MT V6.7 if else, else not working...

Sun Jan 05, 2014 12:54 pm

Hi,

the else of the if is not working.
:if ([/interface get $inetinterface value-name=running]) do={
	:log info "SkriptOVPNpushRoute: currentIP = $previousIPovpn";
} else={
   :log info "SkriptOVPNpushRoute:$inetinterface is not currently running, so therefore will not update.";
}
Do I something wrong?

mfg

Klaus
 
drdotti
just joined
Topic Author
Posts: 16
Joined: Sat Mar 17, 2012 4:15 pm

Re: BUG: Skripting MT V6.7 if else, else not working...

Sun Jan 05, 2014 1:26 pm

[/interface get $inetinterface value-name=running]
After some test's it Looks like the code only provides true but not false in the case of inetinterface not existing.

How can I test an Interface exist or not?

Who is online

Users browsing this forum: Ahrefs [Bot], beeman, Bing [Bot], eworm, GoogleOther [Bot], lurker888 and 209 guests