Getting Started with BAMs

We have a few BAMs that do simple things like send an alert when a
particular field is populated. But can anyone tell me where I can find
information about getting started writing BAMs that allow me to compare
fields (including comparing fields in separate tables)? Is there a
reference-manual for the programming-language use in the alert ".p"
files?

Thanks!
--Ari


[Non-text portions of this message have been removed]