Skip to content

compareAgent

Description

compare

Schema

inputs

json

{}

output

json

{}

Input example of the next node

json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]
json

[
  ":agentId",
  ":agentId.result"
]

Samples

Sample0

inputs

json

{
  "array": [
    "abc",
    "==",
    "abc"
  ]
}

params

json

{"value":{"true":"a","false":"b"}}

result

json

{
  "result": "a"
}

Sample1

inputs

json

{
  "array": [
    "abc",
    "==",
    "abca"
  ]
}

params

json

{"value":{"true":"a","false":"b"}}

result

json

{
  "result": "b"
}

Sample2

inputs

json

{
  "array": [
    "abc",
    "==",
    "abc"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample3

inputs

json

{
  "array": [
    "abc",
    "==",
    "abcd"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample4

inputs

json

{
  "array": [
    "abc",
    "!=",
    "abc"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample5

inputs

json

{
  "array": [
    "abc",
    "!=",
    "abcd"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample6

inputs

json

{
  "array": [
    "10",
    ">",
    "5"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample7

inputs

json

{
  "array": [
    "10",
    ">",
    "15"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample8

inputs

json

{
  "array": [
    10,
    ">",
    5
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample9

inputs

json

{
  "array": [
    10,
    ">",
    15
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample10

inputs

json

{
  "array": [
    "10",
    ">=",
    "5"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample11

inputs

json

{
  "array": [
    "10",
    ">=",
    "10"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample12

inputs

json

{
  "array": [
    "10",
    ">=",
    "19"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample13

inputs

json

{
  "array": [
    10,
    ">=",
    5
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample14

inputs

json

{
  "array": [
    10,
    ">=",
    10
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample15

inputs

json

{
  "array": [
    10,
    ">=",
    19
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample16

inputs

json

{
  "array": [
    "10",
    "<",
    "5"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample17

inputs

json

{
  "array": [
    "10",
    "<",
    "15"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample18

inputs

json

{
  "array": [
    10,
    "<",
    5
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample19

inputs

json

{
  "array": [
    10,
    "<",
    15
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample20

inputs

json

{
  "array": [
    "10",
    "<=",
    "5"
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample21

inputs

json

{
  "array": [
    "10",
    "<=",
    "10"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample22

inputs

json

{
  "array": [
    "10",
    "<=",
    "19"
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample23

inputs

json

{
  "array": [
    10,
    "<=",
    5
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample24

inputs

json

{
  "array": [
    10,
    "<=",
    10
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample25

inputs

json

{
  "array": [
    10,
    "<=",
    19
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample26

inputs

json

{
  "array": [
    true,
    "||",
    false
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample27

inputs

json

{
  "array": [
    false,
    "||",
    false
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample28

inputs

json

{
  "array": [
    true,
    "&&",
    false
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample29

inputs

json

{
  "array": [
    true,
    "&&",
    true
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample30

inputs

json

{
  "array": [
    true,
    "XOR",
    false
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample31

inputs

json

{
  "array": [
    false,
    "XOR",
    true
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample32

inputs

json

{
  "array": [
    false,
    "XOR",
    false
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample33

inputs

json

{
  "array": [
    true,
    "XOR",
    true
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample34

inputs

json

{
  "array": [
    [
      "aaa",
      "==",
      "aaa"
    ],
    "||",
    [
      "aaa",
      "==",
      "bbb"
    ]
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample35

inputs

json

{
  "array": [
    [
      "aaa",
      "==",
      "aaa"
    ],
    "&&",
    [
      "aaa",
      "==",
      "bbb"
    ]
  ]
}

params

json

{}

result

json

{
  "result": false
}

Sample36

inputs

json

{
  "array": [
    [
      [
        "aaa",
        "==",
        "aaa"
      ],
      "&&",
      [
        "bbb",
        "==",
        "bbb"
      ]
    ],
    "||",
    [
      "aaa",
      "&&",
      "bbb"
    ]
  ]
}

params

json

{}

result

json

{
  "result": true
}

Sample37

inputs

json

{
  "array": [
    "abc",
    "abc"
  ]
}

params

json

{"value":{"true":"a","false":"b"},"operator":"=="}

result

json

{
  "result": "a"
}

Sample38

inputs

json

{
  "array": [
    "abc",
    "abca"
  ]
}

params

json

{"value":{"true":"a","false":"b"},"operator":"=="}

result

json

{
  "result": "b"
}

Sample39

inputs

json

{
  "array": [
    "abc",
    "abc"
  ]
}

params

json

{"operator":"=="}

result

json

{
  "result": true
}

Sample40

inputs

json

{
  "array": [
    "abc",
    "abcd"
  ]
}

params

json

{"operator":"=="}

result

json

{
  "result": false
}

Sample41

inputs

json

{
  "array": [
    "abc",
    "abc"
  ]
}

params

json

{"operator":"!="}

result

json

{
  "result": false
}

Sample42

inputs

json

{
  "array": [
    "abc",
    "abcd"
  ]
}

params

json

{"operator":"!="}

result

json

{
  "result": true
}

Sample43

inputs

json

{
  "array": [
    "10",
    "5"
  ]
}

params

json

{"operator":">"}

result

json

{
  "result": true
}

Sample44

inputs

json

{
  "array": [
    "10",
    "15"
  ]
}

params

json

{"operator":">"}

result

json

{
  "result": false
}

Sample45

inputs

json

{
  "array": [
    10,
    5
  ]
}

params

json

{"operator":">"}

result

json

{
  "result": true
}

Sample46

inputs

json

{
  "array": [
    10,
    15
  ]
}

params

json

{"operator":">"}

result

json

{
  "result": false
}

Sample47

inputs

json

{
  "array": [
    "10",
    "5"
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": true
}

Sample48

inputs

json

{
  "array": [
    "10",
    "10"
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": true
}

Sample49

inputs

json

{
  "array": [
    "10",
    "19"
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": false
}

Sample50

inputs

json

{
  "array": [
    10,
    5
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": true
}

Sample51

inputs

json

{
  "array": [
    10,
    10
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": true
}

Sample52

inputs

json

{
  "array": [
    10,
    19
  ]
}

params

json

{"operator":">="}

result

json

{
  "result": false
}

Sample53

inputs

json

{
  "array": [
    "10",
    "5"
  ]
}

params

json

{"operator":"<"}

result

json

{
  "result": false
}

Sample54

inputs

json

{
  "array": [
    "10",
    "15"
  ]
}

params

json

{"operator":"<"}

result

json

{
  "result": true
}

Sample55

inputs

json

{
  "array": [
    10,
    5
  ]
}

params

json

{"operator":"<"}

result

json

{
  "result": false
}

Sample56

inputs

json

{
  "array": [
    10,
    15
  ]
}

params

json

{"operator":"<"}

result

json

{
  "result": true
}

Sample57

inputs

json

{
  "array": [
    true,
    false
  ]
}

params

json

{"operator":"||"}

result

json

{
  "result": true
}

Sample58

inputs

json

{
  "array": [
    false,
    false
  ]
}

params

json

{"operator":"||"}

result

json

{
  "result": false
}

Sample59

inputs

json

{
  "array": [
    true,
    false
  ]
}

params

json

{"operator":"&&"}

result

json

{
  "result": false
}

Sample60

inputs

json

{
  "array": [
    true,
    true
  ]
}

params

json

{"operator":"&&"}

result

json

{
  "result": true
}

Sample61

inputs

json

{
  "array": [
    true,
    false
  ]
}

params

json

{"operator":"XOR"}

result

json

{
  "result": true
}

Sample62

inputs

json

{
  "array": [
    false,
    true
  ]
}

params

json

{"operator":"XOR"}

result

json

{
  "result": true
}

Sample63

inputs

json

{
  "array": [
    false,
    false
  ]
}

params

json

{"operator":"XOR"}

result

json

{
  "result": false
}

Sample64

inputs

json

{
  "array": [
    true,
    true
  ]
}

params

json

{"operator":"XOR"}

result

json

{
  "result": false
}

Sample65

inputs

json

{
  "leftValue": "abc",
  "rightValue": "abc"
}

params

json

{"value":{"true":"a","false":"b"},"operator":"=="}

result

json

{
  "result": "a"
}

Sample66

inputs

json

{
  "leftValue": "abc",
  "rightValue": "abca"
}

params

json

{"value":{"true":"a","false":"b"},"operator":"=="}

result

json

{
  "result": "b"
}

Author

Receptron

Repository

https://github.com/receptron/graphai

License

MIT

Released under the MIT License.