package
0.0.0-20230502073429-587acefb9ced
Repository: https://github.com/ayh20/flogo-components.git
Documentation: pkg.go.dev

# README

Compare

This activity allows you to compare two values and return a true/false result. Data is passed as a string numeric and operation ( i.e. "=", "<=", ">",.... ).

Installation

Navigate to the Flogo app directory [Essential !] and issue the following command

flogo install github.com/ayh20/flogo-components/activity/compare

Schema

Inputs and Outputs:

{
  "inputs":[
    {
      "name": "input1",
      "required": true,
      "type": "string"
    },
    {
      "name": "input2",
      "required": true,
      "type": "string"
    },
    {
      "name": "comparemode",
      "required": true,
      "type": "string",
      "allowed" : [">", "<", "=", "==", ">=", "<=", "!=" ]
    }
  ],
  "outputs": [
    {
      "name": "result",
      "type": "boolean"
    }
  ]
}

Settings

SettingDescription
input1The first value
input2The second value
comparemodeCompare operation

Outputs

OutputDescription
resultBool result based on input comparison

Configuration Examples

Simple

Configure a task to compare two values: