Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »



Function: subSet()

Returns True if all values in one subset exist in another.

Syntax

subSet(setToMatch, setToCheck)

ArgumentTypeDescription
setToMatchArrayThe set of values to match.
setToCheckArrayThe set of values to check.

Examples

subSet(["A","B"],["D","B","A","B"])

Returns True.


subSet(["A","B"],["D","B","E","B"])

Returns False because "A" is not in the second set.


subSet(["A","A","B"],["D","B","A","B"])

Returns True. both "A" members in the input array are related to the single "A" in the comparator array.


Note that subSet($list1,$list2) is equivalent to the expression countElements(excluded($list1,$list2)) > 0.

See Also

  • No labels