Questin about script

Questin about script

 HI i am trying to have my application send an email  when my formula  equals a negativie number. Please help.

Some thing like this.

if FORMULA =< 0 SEND EMAIL