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: |
Returns
Type |
Description |
---|---|
boolean |
|
Examples
- If
$Activity[foo].book[2].price
is equal to30
, the functionisDefined($Activity[foo].book[2].price)
returnstrue
. - If
$.foo.store.addr
is not defined, the functionisDefined($.foo.store.addr)
returnsfalse
.