How do I create a conditional for IF this or this then this IF NOT this

Options
I am trying to create a conditional for an email that shows one message if the person get tax deduction of a certain amount(40) or if the person gets a tax deduction of another amount(50) then they would get a specific message. If not they would receive the message everyone else would get. 


This is the code that I have, which I thought should work.


[[?[[?[[S120:event:taxDeductible]]::50.00::T::]]

[[?[[S120:event:taxDeductible]]::40.00::T]]

::T::SOME TEXT::OTHER TEXT]]


It seems to only work if the first condition is met, but not the second. 


Any thoughts here? Thanks.
Tagged:

Comments

  • This conditional looks like it should do what you want. It says that if the tax deductible amount contains "50.00" or "40.00", then "SOME TEXT", else "OTHER TEXT". 


    Have you added [[S120:event:taxDeductible]] to your content to see what its output is, to confirm it is in fact "40.00"?
  • I have. I used the preview for the event which is default $40.00. I also tested it on a live event still only worked for the $40.00 and not the $50.00. 

    Thanks for responding.
  • Looks like you might be missing the :: after the T in the second line.


    [[?[[?[[S120:event:taxDeductible]]::50.00::T::]]

    [[?[[S120:event:taxDeductible]]::40.00::T::]]

    ::T::SOME TEXT::OTHER TEXT]]


     --

    Jon Reich * Partner * Cathexis Partners * jon@cathexispartners.com * p.605.377.8147

    CathexisLogo150.jpg
  • That seemed to do the trick. Thank you very much.
  • Erik Leaver
    Erik Leaver ✭✭✭✭✭
    Ancient Membership Facilitator 4 Name Dropper Photogenic
    Good question & answer! For those who want more information about writing conditionals, there is a Luminate Tips and Timesavers session on Sept 11 at 1pm EST that may be of interest:

    Personalize Your Communications with S-Tags and Conditionals:

    Do you currently create multiple versions of the same email message to tailor the content to different target audiences? Wouldn’t it be easier to create one email message that automagically gets personalized as it’s sent? S-tags and conditionals are here to help. In this session we’ll explain how to use conditional content in your emails to deliver more personalized and targeted messaging.

    Register today!

Categories