Skip to content

element.exists

Checks whether a leaf element exists within a dimension.

js
element.exists(dimension, name)

Parameters

  • dimension - The dimension within which to check an element exists.
  • name - The identifier of the element.

Example

js
if(element.exists("Account", "600010")) {
    //do something
}

TIP

To check for parent values please refer to hierarchy.hasMember