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 ICS variable or list being not empty.

Syntax

Parameters

One of the parameters is required.
variable
The name of an ICS variable.
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 return false if the variable does not exist in the ICS scope.

Error Numbers

There are no possible errno for this tag.

See Also

ics:ifempty

ics:else

 

   Home > Contents > Index >

Oracle JSP Tag Reference
Copyright (c) 2013, 2016 Oracle and/or its affiliates. All rights reserved.