Expand my Community achievements bar.

Let in AJO Email Templete

Avatar

Level 4

Hi 
i am assinging let vaiable in AJO email template how can i call this let it multible location inside the email template 
{%   let ABC = "Hello"  %}


Topics

Topics help categorize Community content and increase your ability to discover relevant content.

8 Replies

Avatar

Employee

Here is an example mentioned in this documentation 

https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalizatio... 

 

In order to have the variable value displayed in the message content, use it within double curly brackets. 

{% let variable = expression %}

{{variable}}

Avatar

Level 4

when i am using this in HTML block. Block is not getting validated 

Avatar

Community Advisor

@MYSTERIOUSMAN It should work within the HTML content component as well. Example screenshot below that uses the let function,

SatheeskannaK_0-1714619682807.png

 

Thanks, Sathees

Avatar

Level 4

Hi @SatheeskannaK @dugganab 
Can we use or Condition in in if which you have showed the example above

Avatar

Community Advisor

No. HTML content component uses personalization functions. But condition activity uses journey advanced functions.

Thanks, Sathees

Avatar

Level 4

hi @SatheeskannaK @dugganab @arpan-garg 
Can we Create an array and pass mulitiple value in it like  "var1","var2","var3","var4" and then use the event attribute where ever if it get matched it will print the content 

Avatar

Administrator

Hi @SatheeskannaK and @dugganab,

Could you please help @MYSTERIOUSMAN further with their query?

Thanks!



Sukrity Wadhwa