I want to see if my modem is connected and also enable
I have done this :
:global run [/interface get ppp-out1 running];
:global work [/interface get ppp-out1 disabled]
:put $run
true
:put $work
false
if ($run="true"&&work="false") do={:log warning "yessss"} else={:log warning "noooo"}
and I get “noooooo”,
am I doing it right? or I miss something in the writing of the command ?
Thanks ,