Need Clarifiactions on AJO Fragments level | Adobe Higher Education
Skip to main content
Level 4
March 5, 2024
Pregunta

Need Clarifiactions on AJO Fragments level

  • March 5, 2024
  • 0 respuestas
  • 457 visualizaciones

Hi 
Can we use the IF ELSEIF  ELSE condition in AJO fragments 
if yes this below code is showing some error or there is any other way we can do it let me know it in steps or some small example of the code 

Thanks 


"

{% let  PlanCode = profile._qwe.email9 %} 
 
{% if (PlanCode = zxc@gmail.com) %} 
<!DOCTYPE html>
<html>
 
<head>
<title>Welcome To GFG</title>
</head>
 
<body>
<h2>GeeksforGeeks</h2>
<p>This is the zxc  <img> tag.</p>
<img src=
alt="GFG image" />
</body>
</html>
{% elseif (PlanCode = abc@gmail.com) %}
<!DOCTYPE html>
<html>
 
<head>
<title>Welcome To GFG</title>
</head>
 
<body>
<h2>GeeksforGeeks</h2>
<p>This is abc <img> tag.</p>
<img src=
alt="GFG image" />
</body>
 
</html>
 
 
{%else%}
<!DOCTYPE html>
<html>
 
<head>
<title>Welcome To GFG</title>
</head>
 
<body>
<h2>GeeksforGeeks</h2>
<p>This is the demo of <img> tag.</p>
<img src=
alt="GFG image" />
</body>
 
</html>
 {%/if%}


"


 
Updating Media