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

Problem with Ampscript If statement - ContentBlockByID

$
0
0

Hi I am using the below ampscript code to display the content based on the contentblockbyID.

But when I do preview and test, nothing is showing up.Can someone say what is wrong with my code.

%%[ IF @AppType == "ABC" AND @AppIncluded == "Andoid" THEN     ]%%     %%=ContentBlockbyID(203880)=%%     %%=ContentBlockbyID(203882)=%% %%[ ELSEIF @AppType == "EFG" AND @AppIncluded == "Apple" THEN     ]%%     %%=ContentBlockbyID(203876)=%% %%[ ELSEIF @AppType == "AAP" AND @AppIncluded == "DHS" THEN     ]%%    %%=ContentBlockbyID(153381)=%% %%[       ELSEIF @AppType == "AFB" AND @AppIncluded == "DHS" THEN     ]%%    %%=ContentBlockbyID(157719)=%%  %%[ ENDIF ]%%

Viewing all articles
Browse latest Browse all 554

Trending Articles



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