Syntax problem

:if ([/ping 8.8.8.8 count=5 routing-table=WAN1 ] = 0) do={
/ip route disable [find where comment="Brama_domyslna"]
}
else {
/ip route enable [find where comment="Brama_domyslna"]
}



syntax error (line 4 column 6)

Why syntax error ? I also tried

else={

CRS125/ROS 6.36

closing brace and else must be on the same line.

Solved but LOL :slight_smile: