diff --git a/v4/n8n-workflow-simple.json b/v4/n8n-workflow-simple.json index 059554c..3e109b1 100644 --- a/v4/n8n-workflow-simple.json +++ b/v4/n8n-workflow-simple.json @@ -64,19 +64,41 @@ }, { "parameters": { - "conditions": { - "boolean": [ + "rules": { + "values": [ { - "value1": "={{ $json.allowed }}", - "value2": true + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict" + }, + "conditions": [ + { + "leftValue": "={{ $json.allowed }}", + "rightValue": true, + "operator": { + "type": "boolean", + "operation": "equals" + } + } + ], + "combinator": "and" + }, + "renameOutput": true, + "outputKey": "allowed" } ] + }, + "options": { + "fallbackOutput": "extra", + "allMatchingOutputs": false } }, "id": "risk-check-condition", "name": "Risk Check Passed?", - "type": "n8n-nodes-base.if", - "typeVersion": 2, + "type": "n8n-nodes-base.switch", + "typeVersion": 3, "position": [850, 300] }, { @@ -108,19 +130,41 @@ }, { "parameters": { - "conditions": { - "boolean": [ + "rules": { + "values": [ { - "value1": "={{ $json.success }}", - "value2": true + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict" + }, + "conditions": [ + { + "leftValue": "={{ $json.success }}", + "rightValue": true, + "operator": { + "type": "boolean", + "operation": "equals" + } + } + ], + "combinator": "and" + }, + "renameOutput": true, + "outputKey": "success" } ] + }, + "options": { + "fallbackOutput": "extra", + "allMatchingOutputs": false } }, "id": "trade-success-condition", "name": "Trade Executed Successfully?", - "type": "n8n-nodes-base.if", - "typeVersion": 2, + "type": "n8n-nodes-base.switch", + "typeVersion": 3, "position": [1250, 200] }, {