Need help with script syntax

I am attempting to add the following to a script for a 750 box but it starts to err out with the word “do=”


:if ([/ping x.x.x.x count=4] = 0) do={/interface disable interface ;/interface enable interface}


Is it OS specific or a simple syntax error?

Tested in a script on 6.40.3

:if ([/ping 8.5.8.8 count=4] = 0) do={/interface disable ether3-local ;/interface enable ether3-local}

It worked fine. Start commenting out the rest of your script to isolate the area that is causing issues. If this is all you have in the script make sure your interface names are correct.