Let in AJO Email Templete | Community
Skip to main content
Level 4
May 1, 2024
Question

Let in AJO Email Templete

  • May 1, 2024
  • 1 reply
  • 1383 views

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"  %}


This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Mohan_Dugganab
Adobe Employee
Adobe Employee
May 1, 2024

Here is an example mentioned in this documentation 

https://experienceleague.adobe.com/en/docs/journey-optimizer/using/content-management/personalization/functions/helpers#let 

 

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

{% let variable = expression %}

{{variable}}

Level 4
May 1, 2024

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

Level 4
May 7, 2024

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


hi @satheeskannak @mohan_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