~%DisableIf

Description

For the current email message, appointment, or meeting, this macro checks the specified field(s) for the specified condition. If the condition is met, the template is not inserted.

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",
     |
     "fields":["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" | "contains_any_of" | "contains_none_of" | "is_equal_to" |
        "is_equal_to_any_of" | "is_equal_to_none_of" | "is_empty" | "is_not_empty" | "matches" |
        "does_not_match"
     "value":"textvalue-mask" | "textvalue" | "regexvalue"
}

Works for

  • Email templates.
  • Appointment and meeting templates.

Examples of use

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

Deprecated macros

  • FromAccount

Post a comment

Seen by everyone, do not publish license keys and sensitive personal info!

If you have any questions or issues with this add-in, please feel free to post your concerns in the comments area. As soon as we answer, a notification message will be sent to your e-mail. If you do not want to share your thoughts in public, please contact us at support@ablebits.com.