~%DisableIf

Description

For the current email message or current calendar event, this macro checks the specified field or specified property for the specified condition. If the condition is met, the template is not inserted into the current email message or current calendar event.

Syntax

~%DisableIf{
     "field":"from" | "to" | "cc" | "bcc" | "subject" | "location" |
        "recipient_first_name" | "recipient_full_name" | "recipient_last_name" |
        "sender_first_name" | "sender_full_name" | "sender_last_name" |
        "body",
     "condition":"contains" | "does_not_contain",
     "value":"textvalue"
}

Works for

  • Email templates.
  • Calendar event templates.

Examples of use

~%DisableIf{"field":"from","condition":"contains","value":"sales@"}

Deprecated macros

  • FromAccount