Script help

I’m stuck.

This works:
:if ([/interface get [/interface find name=“VPN”] running] = false) do={
/log info Test
}

This doesn’t work:
:if ([/interface get [/interface find name=“VPN”] running] = false) do={
/tool e-mail send to=email@address.com subject=“SUBJECT” body=“BODY”
}

But this command works on it’s own:
/tool e-mail send to=email@address.com subject=“SUBJECT” body=“BODY”

I have no idea. Any one see the issue? Or is there a better way to do this? I got this example from another forum post.

Thank you

Permissions of script maybe?

Don’t think so. Similar scripts with the email part work fine with the same permissions.

I tried this again from scratch entering it manually into the terminal to test it. Now it works. Must have been a formatting issue. Thanks