1
%%[ 

/*Set Dynamic Image URL for Hours Field */
IF not empty (@Business_Hours__c ) THEN
  SET @HoursImgURL = "URL1" 
ELSE 
  SET @HoursImgURL = "URL2"
ENDIF

]%%

or should I use:

IF Business_Hours__c == NULL THEN?

2
  • what did you try? were you getting any errors? – glls Apr 13 '18 at 18:34
  • From the previous post on SO, the @business_hours__c is a column in the sendable DE. – Adam Spriggs Apr 13 '18 at 19:07
1

I'd suggest reviewing the value you're relying on in your conditional:

%%[ 

var @business_hours__c, @hoursImgURL 
set @business_hours__c = AttributeValue("business_hours__c")

output(concat("<br>business_hours__c: ", @business_hours__c))

IF not empty(@business_hours__c) THEN
  SET @HoursImgURL = "URL1" 
ELSE 
  SET @HoursImgURL = "URL2"
ENDIF

output(concat("<br>HoursImgURL: ", @HoursImgURL ))

]%%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.