Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. %%[
  2. VAR @ContentLanguage, @ContentCommentary, @ContentContent, @AllRecordsContent, @RowCountContent, @i,@ClientLanguage, @ClientContent,
  3. SET @AllRecordsContent = LookupOrderedRows("Weekly Content", 2000, "Sort_Order__c Asc", "Content_Block__c", "Looking Back")
  4. SET @RowCountContent = rowcount(@AllRecordsContent)
  5. SET @ClientContent = [Ameraudi_Newsletter_Content__c]
  6. SET @ClientLanguage = [Ameraudi_Newsletter_Language__c]
  7. ]%%
  8. <br>
  9. <h1 style="font-family:Verdana; font-size:93%; color:DarkBlue;">
  10. %%[ IF @ClientLanguage == 'English' THEN ]%% LOOKING BACK - MARKET OVERVIEW
  11. %%[ELSEIF @ClientLanguage == 'Spanish' THEN ]%% ACTUALIZACIÓN DEL MERCADO
  12. %%[ELSEIF @ClientLanguage == 'Portuguese' THEN ]%% REVISÃO DA SEMANA - VISÃO GERAL DO MERCADO
  13. %%[ENDIF]%% </h1>
  14. <ul style="font-family:Verdana; font-size:100%; color:grey;">
  15. %%[
  16. IF @RowCountContent > 0 THEN
  17.  
  18. FOR @i = 1 TO @RowCountContent DO
  19. set @ContentCommentary = Field(Row(@AllRecordsContent,@i),"Commentary__c")
  20. set @ContentContent = Field(Row(@AllRecordsContent,@i),"Content__c")
  21. set @ContentLanguage = Field(Row(@AllRecordsContent,@i),"Language__c")
  22.  
  23. IF IndexOf(@ClientContent, @ContentContent) > 0 AND IndexOf(@ClientLanguage,@ContentLanguage) > 0 THEN
  24. ]%%
  25.  
  26. <li>%%=v(@ContentCommentary)=%% </li>
  27. <br>
  28.  
  29. %%[
  30. ENDIF
  31. NEXT @i
  32. ELSE
  33. No Rows Found
  34. ENDIF
  35. ]%%
  36. </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement