Home > Contents > Index >
ics:ifnotempty
Processes other tags or displays text based on an
ICS
variable 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
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 returnfalse
if the variable does not exist in theICS
scope.Error Numbers
There are no possible
errno
for this tag.See Also