message.get
message.get(key)
Description
Gets the value in the message at the key.
Parameters
| Parameter | Type | Explanation |
|---|---|---|
| key | String | Field name (use a / between field names when the field is within another field) |
Example
counter = message.get("counter")
counter += 1
message.counter = counter
api.publish(message)