I am trying to create a custom email message using IF THEN statement that reads an Attribute through our DE. The message should pertain to what "card tier" the client is. Salesforce keeps telling me that the code is not closed properly, at this point I am unsure what to do or if this is the right string function.
%%[
var @CardTierDesc
set @CardTierDesc = [Card Tier Desc]
]%%
IF @action == "AttributeValue('Emerald')" THEN ]%%
<p>This is the Emerald message</p>
%%[ IF @action == "AttributeValue('Diamond')" THEN ]%%
<p>This is the diamond messge.</p>
%%[ IF @action == "AttributeValue('Crown')" THEN ]%%
<p>CROWN IS THE RULER</p>
%%[ENDIF]%%
@action
set?