In my blogger template add a conditional statement. But it is not working. It is always display 'Not equal'
Home url: http://abc.blogspot.in
For testing purpose i had pasted the below code after '<body>
' tag.
<b:if cond='data:blog.url == data:blog.homepageUrl + "p/my-page-url.html"'>
<h1>Equal</h1>
<b:else/>
<h1>Not equal</h1>
</b:if>
I had printed the value of <data:blog.url/>
and <data:blog.homepageUrl/>p/my-page-url.html
and it is same.
updates:
<b:if cond='data:blog.url == "http://abc.blogspot.in/p/my-page-url.html"'>
<h1>Equal</h1>
<b:else/>
<h1>Not equal</h1>
</b:if>
//Not equal
<b:if cond='data:blog.url == "http://abc.blogspot.com/p/my-page-url.html"'>
<h1>Equal</h1>
<b:else/>
<h1>Not equal</h1>
</b:if>
//Equal
Thank You