what is wrong with this script that does not log the up time in “if” statement and passes to reach the “else” statement and says its down
:local pppoeInterface “pppoe-out1”
:local interfaceStatus [/interface get $pppoeInterface running]
:local uptime
:put ("Interface Status: " . $interfaceStatus)
:if ($interfaceStatus = true) do={
:local uptimeValue [/interface get $pppoeInterface uptime]
:set uptime ("PPPoE interface " . $pppoeInterface . " is UP. Uptime: " . $uptimeValue)
} else={
:set uptime (“PPPoE interface " . $pppoeInterface . " is DOWN.”)
}
:log info $uptime[/b][/i][/i][/u][/u]