Logical comparisons over data
This service requires MESG Core to be installed first.
You can install MESG Core by running the following command or follow the installation guide.
bash <(curl -fsSL https://mesg.com/install)
Download the source code of this service, and then in the service's folder, run the following command:
mesg-core service deploy
Task key: pick
Pick data when conditions are met
Name | Key | Type | Description |
---|---|---|---|
oneOf | oneOf |
Object |
Pick one of the data |
otherwiseUse | otherwiseUse |
Any |
optional Data to pick if non of the conditions aren't met. |
Output key: failure
Name | Key | Type | Description |
---|---|---|---|
message | message |
String |
Output key: success
Name | Key | Type | Description |
---|---|---|---|
data | data |
Any |
Filled from 'use' or 'otherwiseUse' input parameters or with empty object data by default |