Code: Select all
:local intrxfcs [/interface ethernet get 0 rx-fcs-error]
:if ([:tonum $intrxfcs] > 1) do={:set $alert 1}
- the value of rx-fcs-error contains a space after the first two digits
- :tonum function only works up to integer limit and returns nothing if value is greater than that
Code: Select all
:if ([:len [:tostr $intrxfcs]] > 1) do={:set $alert 1}
Is there a way to solve this?