Adding multiple conditions to Trigger_SendEmail?

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
jlig
Posts: 35
Joined: 2010-07-09 16:17

Adding multiple conditions to Trigger_SendEmail?

Post by jlig » 2014-05-21 15:52

Does anyone know how to add a second condition to the SendEmail trigger? Or how to use AND/OR logic under the advanced builder?

- If I go to the Advanced tab, and type in the following condition, it works fine: {omActCompDate} NEQ ""
- But I also need to add a second condition: {omType} EQ "FCP"
Question: How do I combine these conditions to work together? ( using the AND operator)

Here is what the behavior adds to the page with only one condition:
upd_tblcom.registerConditionalTrigger("{omActCompDate} NEQ """"", "AFTER", "Trigger_SendEmail_Sales", 40);

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Adding multiple conditions to Trigger_SendEmail?

Post by Fred » 2014-05-28 10:13

standard php is used in the advanced condition builder so something like this should work.

Two variables must be true (AND)

Code: Select all

({omActCompDate} NEQ "") && ({omType} EQ "FCP")
One variable must be set (OR)

Code: Select all

({omActCompDate} NEQ "") || ({omType} EQ "FCP")

Post Reply