I'm looking to swap out an image based on the Gender field I'm using in SFMC.
Essentially, I'd like to have a female image as default, then if the field Gender equals male, I'd like to swap them out to display that male image. I understand I can use an Lookup with AMPscript, but I'm unsure of the exact code that can do it. Any help would be greatly appreciated.
I've researched the below as an example, but unsure what needs to be swapped out.
> %%[
> Var @count
> Set @count = RowCount(LookupRows("Male", "YOUR_SUBSCRIBER_KEY_COLUMN", AttributeValue("_subscriberkey")))
>
> IF @count = 1 THEN ]%%
>
>
> <img src="maleImage.jpg" /> %%[ ELSE ]%% <img src="femaleImage.jpg" />
> %%[ ENDIF ]%%