Hello, I'm looking for more documentation on the full capabilities of IF statements within SS files.
Information on cool little tricks like <% control %> and <% if %> seems to be sparse and it would be great if I knew what else you could do.
Specifically IF statements because want to use them to make certain parts of the SS conditional depending on values it gets from the controller.
EG:
Say I have the following SS code
<table>
<tr>
<td>$variable1</td>
</tr>
<tr>
<td>$variable2</td>
</tr>
</table>
I want to make it so that if $variable2 is just blank then the entire row it sits on disappears
<table>
<tr>
<td>$variable1</td>
</tr>
<% if $variable2=="" %>
<tr>
<td>$variable2</td>
</tr>
<% end_if %>
</table>
Or maybe...
<table>
<tr>
<td>$variable1</td>
</tr>
<% if checkNull($variable2) %> <!--pass variable to controller->
<tr>
<td>$variable2</td>
</tr>
<% end_if %>
</table>
...Or something like that. I can't find any guides or tutorials out there that specify the exact syntax of these statements so I don't know the proper way to go about this