The If utility tag is pretty simple. The 'predicate' attribute only
takes either "true" or "false" as strings I believe.  Ofcourse, the
value of the 'predicate' attribute is calculated at runtime, so it is
possible to make some use for this tag.  AND and OR operations work just
like they do in Java.  I hope this helps.
 
<tag:If predicate="<%= (x <= 5)%>" >
...
</tag:If>
<tag:If predicate="<%= (x > 5)%>" >
...
</tag:If>
<tag:If predicate="true">
....
</tag:If>
<tag:If predicate="false">
....
</tag:If>
 
Brett

-----Original Message-----
From: Marcus Andrade [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 7:10 AM
To: [EMAIL PROTECTED]
Subject: Regarding IF tag (Utility)


Does somebody know how to use the IF tag of the Utility Tag Library ? I
can´t figure out how to use AND, OR operations with that. Some examples
would be nice. 
Thanks
 
Marcus Andrade Peixoto
São Paulo/Brazil
 
 

Reply via email to