Hello ,
I want to run a command that wil check me if there is interface in the name of ppp-out2
how can I do it?
I I thought to do something like this :
mikrotik.Send ("/interface/print");
mikrotik.Send ("?name=ppp-out2");
mikrotik.Send ("=proplist=name" , true);
and the answer if there is interface will be :
!re=name=ppp-out2
and if there isn’t such interface I get an empty line
I thought to take the length of the answer
but when there isn’t such interface it doesn’t gice me 0 , it give me empty
so I don’t know how to work with this …
how do I continue from here ?
what to look for?
or is there another way?
Thanks ,