@nanoservice-ts/if-else
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

Configuration Options

The IfElse node allows you to have a conditional statement and call other nodes depending on the conditions

Node properties

Required properties

  • conditions (array): List of conditions to check
    • type (string if | else): type of the condition
    • condition (string): The condition string to be checked
    • steps (array): List of steps to execute if the condition is true

Usage/Examples

Step Configuration

{
    "name": "if-else",
    "node": "if-else@1.0.0",
    "type": "local"
}

Node Configuration

"if-else": {
    "conditions": [
        {
            "type": "if",
            "condition": "data !== undefined",
            "steps": []
        },
        {
            "type": "else",
            "steps": []
        }
    ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @nanoservice-ts/if-else

Weekly Downloads

343

Version

0.0.33

License

Apache-2.0

Unpacked Size

44 kB

Total Files

19

Last publish

Collaborators

  • mcastillo.deskree