Skip to content

EXIST

The EXIST function checks the contents of a set and returns a Boolean True if a given domain is contained in the set, a False otherwise.

For example, this snippet:

if (EXIST(workingSet, "1.01")) {
    INSERT(workingSet, ["1.01.1", "1.01.2", "1.01.3"]);
}

adds domains 1.01.1, 1.01.2 and 1.01.3 to workingSet if it already contains domain 1.01.

The syntax is:

EXIST(set, domain)

where:

  • set is a set variable.
  • domain is the domain name or ID.