Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
ics:ifnotempty
Processes other tags or displays text based on an
ICSvariable or list being not empty.Syntax
<ics:ifnotempty [variable="ICS variable name"] [list="Name of list"]> tags and/or text </ics:ifnotempty>Parameters
One of the parameters is required.
variable- The name of an
ICSvariable.list- Name of the list.
Description
The following code:
<ics:ifnotempty variable="foo"> ...do something... </ics:ifnotempty>is strictly equivalent to:
<ics:if condition='<%=ics.GetVar("foo")!=null && ics.GetVar("foo").length()>0%>'> <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, 2016 Oracle and/or its affiliates. All rights reserved.