Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

aem sightly Condition

Avatar

Level 2

Hi,

    Someone please help me.

 

<sly data-sly-test.lang="${val}" />
i am getting the current url in lang but when i m trying to test using below code it is getting false somewhere and i m not getting text ( true )  on page(view source). so is there any other condition in aem to use here.
 <sly data-sly-test="${lang == ''https://www.google.com''}">
    true
</sly>
1 Reply