data.isDefined

This function checks whether the specified mapping reference is defined or not.

Syntax

data.isDefined(mappingReference)

Arguments

Argument

Type

Description

mappingReference

any

Path to Activity output or app property.

For example: $Activity[ActivityName].propertyName

Returns

Type

Description

boolean

  • True: if mapping reference is defined
  • False: if mapping reference is not defined

Examples

  • If $Activity[foo].book[2].price is equal to 30, the function isDefined($Activity[foo].book[2].price) returns true.
  • If $.foo.store.addr is not defined, the function isDefined($.foo.store.addr) returns false.