I am can't figure out something I think is pretty simple. I have an if/then statement and I want to evaluate three things:

%%[if @PromoCode == "XXXX" OR @Tier == "XXX" AND @Price == "100"  then]%%

What I am looking for is something like this:

(@PromoCode == "XXXX" OR @Tier == "XXX") AND @Price == "100"

How do I express that in an AMPscript If Then statement?


Should be something like this:

%%[ if (@PromoCode == "XXXX" OR @Tier == "XXX") AND @Price == "100" then ]%%

%%[ endif ]%%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.