isaac wrote:
>
> Has anyone noticed that they get errors when trying to use else or elsif statements
>with Apache::ASP.
>
> If I form my statements like this:
>
> <% if($foo eq ‘bar’){ %>
> <p>bar
> <% } %>
> <% elsif($foo eq ‘bar2’){ %>
> <p>bar2
> <% } %>
>
> I get syntax errors.
> ...
> Then I get no syntax errors. Is there a way around this? Any help would be much
>appreciated.
> ...
Realize that html between %> ... <% , the ... get's printed
even if its white space.
Try writing it like this:
<% if($foo eq ‘bar’){ %>
<p>bar
<% } elsif($foo eq ‘bar2’){ %>
<p>bar2
<% } %>
-- Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051