Hi!
In my .ss page I wrote this line of code. My proble is apply an if clouse to every div.
For example :
if $Name != '' then show div else go on.
Can you hel me write this in a correct way please?My <% if $Nome !='' %> is not correct
<% if Conn %>
<ul id="product">
<% control Conn %>
<li>
<% if $Nome !='' %><div class="nome_query_2"> $Nome </div><% end_if %>
<% if $Type !='' %><div class="nome_query_2"> $Type </div> <% end_if %>
</li>
<% end_control %>
</ul>
<% end_if %>
And if I need an or clouse?for example <% if $Nome !='' or $Type !='' %> what is the correct syntax?
Thanks!