Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

IF Statement not closed error

$
0
0

I'm getting an error with an IF statement, even though it was working previously.

This is my code:

Hello %%[IF Empty(@firstname) THEN]%%homeowner, %%[ELSE]%% %%=ProperCase(@firstname)=%%,%% [ENDIF]%%

This is the error I'm getting:

An IF statement is not closed with the required ENDIF statement. ClientID: ######### JobID: 0 EmailID: 0 Index: 447 Statement: IF Empty(@firstname) THEN]%%homeowner, %%[ELSE]%% %%=ProperCase(@firstname)=%%,%% [ENDIF]%%

This letter serves as formal notice of your completion date at project.

Your completion is %%[IF Empty(@closedate) THEN]%%(date unavailable, please email us) %%[E

I've checked through the code and looked at resources online, but the brackets look correct to me. What am I missing?


Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>