Operations (sample payloads)

Main operations

Evaluation

Perform (complex) truthy evaluations on the specified values, conditions, and conjunctions. Sample Input

{
    "initial_condition": \{
        "value1": 10,
        "condition": ">",
        "value2": 5,
        "not": false
    \},
    "further_conditions": [
        \{
            "conjunction": "AND",
            "value1": "apple",
            "condition": "In",
            "value2": [
                "apple",
                "banana",
                "orange"
            ],
            "not": false
        \},
        \{
            "conjunction": "OR",
            "value1": true,
            "condition": "===",
            "value2": false,
            "not": true
        \}
    ],
    "initial_not": false,
    "further_groups": [
        {
            "conjunction": "OR",
            "initial_condition": \{
                "value1": "hello",
                "condition": "===",
                "value2": "world",
                "not": false
            \},
            "further_conditions": [
                \{
                    "conjunction": "AND",
                    "value1": 100,
                    "condition": "<=",
                    "value2": 200,
                    "not": false
                \}
            ],
            "group_not": false
        }
    ]
}

Sample Output

{
    "result": true
}

Logical XOR XNOR

Perform either a XOR or XNOR evaluation on the two specified values by their given truthy. Sample Input

\{
    "value1": true,
    "condition": "XOR",
    "value2": false
\}

Sample Output

{
    "result": true
}

Truthy

Returns a boolean (true or false) for any given value. Sample Input

\{
    "value": "Hello, World!"
\}

Sample Output

{
    "result": true
}

Was this page helpful?