<%if not URL%> (or <%unless% URL%>)
do something
<%endif%> (or <%endunless%> )
Perl considers an empty string to be "false" in boolean context.
I also have an URL field that can be empty, and I have not had any problems up to now. That doesn't mean that there aren't any, but I haven't come across them.
Ivan
-----
Iyengar Yoga Resources / GT Plugins
do something
<%endif%> (or <%endunless%> )
Perl considers an empty string to be "false" in boolean context.
I also have an URL field that can be empty, and I have not had any problems up to now. That doesn't mean that there aren't any, but I haven't come across them.
Ivan
-----
Iyengar Yoga Resources / GT Plugins