This documentation is archived and is not being maintained.
Set.empty Method [AX 2012]
Determines whether the set is empty.
Run On
Called
Return Value
Type:
boolean
true if the set is empty; otherwise, false.
This is equivalent to (elements() == 0).
The following example tests whether there are any elements in a set.
{
Set mySet = new Set(Types::Integer);
;
// ...
if (mySet.empty())
{
print "There are no values in the set";
}
}