Feature: more conditions in IF node

Hi,

First, thank you for your hard work.
I enjoy your software. I started to use it 3 weeks ago and it help me in my notification monitoring system.
Do you plan to add more boolean conditions in the IF node ?
Example:
I send a webhook with 4 integer variables.
a0 a1 b0 b1
I would like have IF rule like a truth boolean table as:
( a0 OR a1) AND ( b0 OR b1)

It will be amazing to have this sort of rules engine.

Regards and thank you again.

Fred

Great to hear that you enjoy n8n!

What you want to do should actually be possible with an expression. Here an example workflow with an expression set on the first value of the IF-Node:

(you can simply copy the JSON bellow and paste it directly into n8n, it will then create all the nodes and connections)

{
  "nodes": [
    {
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n      a0: false,\n      a1: false,\n      b0: true,\n      b1: false\n    }\n  }\n]"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{($node[\"Function\"].data[\"a0\"] || $node[\"Function\"].data[\"a1\"]) && ($node[\"Function\"].data[\"b0\"] || $node[\"Function\"].data[\"b1\"])}}",
              "value2": true
            }
          ]
        }
      },
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Function": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}