contains

Type: Function

Returns whether the given ancestor is or contains the given descendant in the given blueprint.

Refer to blueprintQuery for more information on how to import and use this function.

Arguments

  1. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to consider the nodes

  2. ancestor

    (Required)

    Type: Node

    The node thought to be the ancestor

  3. descendant

    (Required)

    Type: Node

    The node thought to be the descendant

Returns

Type: Boolean

Whether ancestor is equal to or an ancestor of descendant in the blueprint.