Skip to content

FAMILY

The FAMILY function returns a new set containing the domains of an existing set that, in the project taxonomy, are descendants of a given domain.

For example, given the sample project taxonomy, consider this snippet:

var someSports = SET(["1.05", "1.07", "1.08.1", "1.08.3"])

var hockeyChildren = FAMILY(someSports, "1.08")

The second statement defines and populates the hockeyChildren set with all the domains of mySet that, in the project taxonomy, descend from domain 1.08, so the contents of hockeyChildren will be:

1.08.1 (ice hockey)
1.08.3 (roller hockey)

The syntax is:

FAMILY(set, domain)

where:

  • set is a set variable.
  • domain is a domain ID enclosed in quotation marks.