Sly logic mismatching
Hi Team,
I have a simple sly logic to wrap a div in two places and it is not working for closing div. any suggestions ?
<sly data-sly-test="${false}"> // this sly isn't going inside when it is false as expected
<div> //opening div
</sly>
//HERE OTHER HTL AND HTML CODE IS THERE
<sly data-sly-test="${false}"> // this sly is going inside even it is false
test1 //this line is not executing when condition of sly is false as expected
</div> //closing div, this line is executing when condition of sly is false
test2 //this line is executing when condition of sly is false
</sly>
output when false
</div>
test2
So at the end I'm experiencing an extra closing div. The opening div hasn't been executing while ending div executing with the same logic that make a extra closing div in the html structure. Any suggestion would be appreciated.
Thank in advance