Home > Contents > Index >
ics:if
Processes other tags or displays text based on a logical condition.
Syntax
<ics:if condition="logical expression
"> <ics:then> tags and/or text </ics:then> <ics:else> tags and/or text </ics:else> </ics:if>Parameters
condition
(required)- Takes a
true
orfalse
logical expression in Java.
Description
The
ics:if
tag processes other tags or displays text based on a logical condition. If the condition istrue
, the content of theics:then
tag is processed. If the condition isfalse
, the content of theics:else
tag is processed. Theics:then
tag is required as part of anics:if
tag. Theics:else
tag is not required. ics:if, ics:else and ics:then provide debugging information in log.Error Numbers
There are no possible
errno
for this tag.Example
The following example checks the value of
errno
:<ics:if condition="<%=ics.GetErrno()!=0%>">See Also
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.