I have a data extension that has a field called "veh_model_name". I want to create an If/then ampscript code to change the value "Lancer SportBack" to "Lancer" but return the regular field values if the values are not "Lancer SportBack". Then I want to place the variable in the subject line of my email. Here is what I have:
%%[
var @subject
set @subject = veh_model_name
]%%
%%[IF @subject == "Lancer SportBack" THEN]%%
Lancer
%%[ELSE]%%
%%=v(@subject)=%%
ENDIF
]%%
AttributeValue("veh_model_name")
and checking forempty()