Any idea why this isn’t getting past the :if statement?
Here’s the code:
/system script \
add name=test policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source="\
:local p1 5; \
:local p2 5; \
:put \"Begin\"; \
:if (\$p1 + \$p2 < 5) do={ \
:put \"Less than 5\"; \
} else=( \
:put \"Greater than 5\"; \
) \
:put \"Done\"; \
"
Here’s the output:
] /system script> run 0
Begin