Need Code for Agent

I am rather new to notes database programming only knowing formula language. I read that a scheduled agent cannot be run with formula language and therefore was hoping someone could send show me the script code to do the following:

If

form variable = criteria

then

send and email to “author variable” email address

Hope this isn’t too criptic…

Thanks, Paul

Subject: I am curious as to where you got that information.

You can use formula language commands like @MailSend in scheduled agents. If you have tried it and it is not working for you then post your code and we can help.

Subject: Information Source

Actually it’s been a little while since I’ve tried to make this work but to my best recollection, my problem was with an “On Schedule” trigger. If this is not the case and I can you formula language, that would be fantastic BUT I still need to discover the “magic” to get the agent to run on a daily basis.

Thanks so much, Paul