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].priceis equal to30, the functionisDefined($Activity[foo].book[2].price)returnstrue. - If
$.foo.store.addris not defined, the functionisDefined($.foo.store.addr)returnsfalse.