Home > Contents > Index >
ics:ifequals
Processes other tags or displays text based on an
ICS
variable 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
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 returnfalse
if the variable does not exist in theICS
scope.Error Numbers
There are no possible
errno
for this tag.See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.