I am trying to create a sender profile that allows me to change the name based on a subscriber's attribute. This is about 95% complete, 3/4 test cases I have work. There is one still lingering though, one of the test cases will get a the %%RP External Wholesaler%% when they have NAM Key Contact RP as Contact Type and have RP NAM as Marshall Urbanz. So they should of received "Marshal Urbanz" as the form name but instead they got the External Wholesaler name.
I think it may have to do with the fact that i'm trying == "", i've tried using the empty() function but sender profiles won't let me use functions such as this or and ELSEIF... Any ideas what i'm missing?
%%[ IF Contact Type == "NAM Key Contact RP" THEN ]%% %%[ IF RP NAM == "Marshall Urbanz" THEN ]%% Marshall Urbanz %%[ ELSE ENDIF IF RP NAM == "Mary McCormack" THEN ]%% Mary McCormack %%[ ELSE ENDIF ELSE ENDIF]%% %%[IF RP External Wholesaler == "" AND Contact Type == "" THEN]%% Securian Retirement Distributors %%[ELSE]%% %%RP External Wholesaler%% %%[ ENDIF ]%%