Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | 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
trueorfalselogical expression in Java.
Description
The
ics:iftag processes other tags or displays text based on a logical condition. If the condition istrue, the content of theics:thentag is processed. If the condition isfalse, the content of theics:elsetag is processed. Theics:thentag is required as part of anics:iftag. Theics:elsetag is not required. ics:if, ics:else and ics:then provide debugging information in log.Error Numbers
There are no possible
errnofor 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, Oracle and/or its affiliates. All rights reserved.