Home > Contents > Index >
ics:ifempty
Processes other tags or displays text based on an
ICS
variable or list being empty.Syntax
<ics:ifempty [variable="ICS variable name
"] [list="Name of list
"]> tags and/or text </ics:ifempty>Parameters
One of the parameters is required.
variable
- The name of an
ICS
variable.list
- Name of the list.
Description
The following code:
<ics:ifempty variable="foo"> ...do something... </ics:ifempty>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