In my Data Extension there is a field, Age
, with a value of 100
.
I want to change this value from 100
to something completely different like Red
or One-Hundred
.
Can this be done with AMPscript?
Note: the Field has the number Data Type.
Update:
My current solution is replacing my Age
field, however the code after the ELSEIF is not being executed. I'm not sure why.
%%[
var @Age
IF @Age > "99" THEN
set @termsYear = "Whole of life"
UpdateDE("TestDE",1,"Age", @Age, "Age", @termsYear)
ELSEIF @Age < "99" THEN
set @termsYear = AttributeValue("Age")
ENDIF
]%%