referencing a field in a node in hook_node_api
If memory serves it should be something like this:

if (!empty($node-&gt;field_alert[0]['value'])) {
  //do something
  drupal_set_message('Your update will be emailed out.');
}