Hi Everyone
I have a smaller problem that I need some help with. And it should be really simple.
I want to create an if statement for variables in my classes/templates, just like I do with menus in the template, i.e.
<% if Menu(2) %>
<div id="mySecondMenu">
<% control Menu(2) %>
...
<% end_control %>
</div>
<% end_if %>
So what I basically would do is this:
<% if $myImage %>
<img src="$myImage"/>
<% end_if %>
Does it make sense?
I'll try to explain. Let's say for instance that I've created an image in a template (both in the class file and template), but the user doesn't fill it out in the backend. Now of course the image doesn't show up in front, because there is no, instead the browser is showing me a questionmark, and that looks pretty silly.
Can anyone help, thanks.
Joel