Expand my Community achievements bar.

Dive in, experiment, and see how our AI Assistant Content Accelerator can transform your workflows with personalized, efficient content solutions through our newly designed playground experience.

Need Clarifiactions on AJO Fragments level

Avatar

Level 4

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

 

0 Replies