Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilgooz/service-logic
Logical comparisons over data
https://github.com/ilgooz/service-logic
Last synced: 25 days ago
JSON representation
Logical comparisons over data
- Host: GitHub
- URL: https://github.com/ilgooz/service-logic
- Owner: ilgooz
- Created: 2019-02-25T15:59:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T10:53:07.000Z (over 4 years ago)
- Last Synced: 2024-08-04T20:02:07.984Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - Logic - Logical comparisons over data. (Logic)
README
# Logic
Logical comparisons over data
# Contents
- [Installation](#Installation)
- [Definitions](#Definitions)
- [Tasks](#Tasks)
- [pick](#pick)# Installation
## MESG Core
This service requires [MESG Core](https://github.com/mesg-foundation/core) to be installed first.
You can install MESG Core by running the following command or [follow the installation guide](https://docs.mesg.com/guide/start-here/installation.html).
```bash
bash <(curl -fsSL https://mesg.com/install)
```## Service
Download the source code of this service, and then in the service's folder, run the following command:
```bash
mesg-core service deploy
```# Definitions
# Tasks
## pick
Task key: `pick`
Pick data when conditions are met
### Inputs
| **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. |### Outputs
#### failure
Output key: `failure`
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **message** | `message` | `String` | |#### success
Output key: `success`
| **Name** | **Key** | **Type** | **Description** |
| --- | --- | --- | --- |
| **data** | `data` | `Any` | Filled from 'use' or 'otherwiseUse' input parameters or with empty object data by default |