Home > Contents > Index >  
Template Tags TOC   |    Alpha TOC   |    Tag Family TOC   |    Purpose TOC   |    Annotated TOC   |    Index 

 

ics:ifequals

Processes other tags or displays text based on an ICS variable being equal to a given value.

Syntax

Parameters

variable (required)
The name of an ICS variable.
value (required)
An arbitrary value.

Description

The following code:

<ics:ifequals variable="foo" value="bar">
   <ics:then>
      ...do something...
   </ics:then>
</ics:ifequals>

is strictly equivalent to:

<ics:if condition='<%="bar".equals(ics.GetVar("foo"))%>'>
   <ics:then>
      ...do something...
   </ics:then>
</ics:if>

Note that the condition will return false if the variable does not exist in the ICS scope.

Error Numbers

There are no possible errno for this tag.

See Also

ics:if

ics:else

ics:then

 

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.