8 March 2012 at 11:27am
(Last edited: 8 March 2012 11:29am),
What you are doing wrong is not reading the documentation, look here:
In the section “If blocks” of this page you’ll find an explanation of how to use those if conditions, that are not as rich as PHP ones, for example: You should not include quotes around the value. Also, / will not work, I guess you should use home:
<% if Link == home %>
8 March 2012 at 8:37pm
(Last edited: 8 March 2012 8:39pm),
Yes, I read the documentation and I did that test ( <% if Link == home %> ), but it did not work. This condition does not occur, for this reason I tried the other type of condition:
<% if Link == "/" %>
No one of the 2 ways works.
This way ( <% if Link == home %> ) does not produce any errors, but the condition is not true. Why?