Can I use Ampscript in a content area?
I am trying to say, IF Country = Australia then display this url else display another url.
I have added this to a content area but it keeps pulling in the other url for everything.
here is script.
<!-- %%[
Var @Country
Var @URL
Set @Country = Country
If @Country == "Australia" THEN
Set @url = CONCAT("http://www.aaa.com/media/logos/australia.png")
ELSE
Set @url = CONCAT("http://www.aaa.com/media/logos/other.png")
ENDIF
]%%
-->
<img src=%%=TreatAsContent(@URL)=%% />