This is what I want to do:
<% if ImageFile.Orientation = 2 %>
$ImageFile.SetWidth(135)
<% else %>
$ImageFile.SetHeight(135)
<% end_if %>
I can use $ImageFile.Orientation outside if the <% %> and it prints on the screen nicely. But If I try and use it inside <% %> the template breaks.
Do I have the wrong syntax? I've tried every variation I can think of. Or is it just not possible? I know I can get around this by adding a method into the controller but it's annoying to have to do that when I can print the Orientation property onto the page.