Skip to content

DIMENSIONS

The DIMENSIONS function returns the boolean result of a condition applied to the size of a set.

For example, in this snippet:

var workingSet = CLONE(ALL);
if(DIMENSIONS(workingSet, ">", 2)) {
    ...
}

the DIMENSIONS function returns True if workingSet contains more than two domains.

The syntax is:

DIMENSIONS(set, operator, number)

where:

  • set is a set variable.
  • number is an integer number.
  • operator is one of the following comparison operators to be enclosed in quotation marks:
Operator Description
= Equal
<> Not equal
> Greater than
>= Greater than or equal
< Less than
<= Less than or equal