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
ICSvariable being equal to a given value.Syntax
<ics:ifequals variable="ICS variable name" value="value"> <ics:then> tags and/or text </ics:then> <ics:else> tags and/or text </ics:else> </ics:ifequals>Parameters
variable(required)- The name of an
ICSvariable.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 returnfalseif the variable does not exist in theICSscope.Error Numbers
There are no possible
errnofor this tag.See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.