I am creating a dynamic sender profile retrieving info from a content area with ampscript. The current code is based on values within salesforce.
The current content is working although when I add additional parameters for language I am receiving errors the code which is receiving errors is:
%%[
Var @n, @EN, @FR
SET @EN = "English xxx"
SET @FR = "French yyy"
SET @n = Lookup("ENT.Salesforce_User_Data", "Name", "id", LongSFID([Relationship Owner SFID]))
]%%
%%[ IF region == "Atlantic" OR region == "Ontario" OR region == "Quebec" OR region == "Western Canada" OR region == "Institutional" THEN ]%%
%%=v(@n)=%%
%%[ ELSEIF region == "" OR region == "Default" OR region == "Discount" OR region == "Other " AND (language != "French") THEN ]%%
%%= v(@EN) =%%
%%[ ELSE ]%%
%%= v(@FR) =%%
%%[ ENDIF ]%%
When testing the display name which should be French yyy is English xxx although when replying the correct name is displayed.