I am setting up an email for refund confirmations. I have this ampscript set up:
%%[
var @payment_method, @paymentblock,
set @payment_method = payment_method
]%%
Later on I have:
IF @payment_method == 'CreditCard'
THEN SET @paymentblock = '<strong>%%cc_company%%</strong> account (account number ending in %%card_lastfour%%)'
Instead of displaying the values of %%cc_company%%
and %%card_lastfour%%
, the email displays the text '%%cc_company%%' and '%%card_lastfour%%'.