The ISML function hasNext()
allows you to check whether the iterator instance currently used in a loop contains any elements. This is useful, for example, in case the last loop element requires special treatment.
hasNext( <loop iterator identifier> )
<ISLOOP iterator="foo"> ... <ISIF condition="#hasNext(foo)#"> ... (do something except for last line) </ISIF> ... </ISLOOP>
Note
If an alias name has been defined for the iterator, this alias has to be used for hasNext()
as well.