{ "name": "verify-if-condition-optional-field-opts-out", "nodes": [ {"id": "n1", "name": "Trigger", "type": "click-trigger", "position": {"x": 0, "y": 0}, "config": {}}, {"id": "n2", "name": "Fixture", "type": "code", "position": {"x": 0, "y": 100}, "config": {"code": "return { status: 'paid' };"}}, {"id": "n3", "name": "PromoApplied", "type": "if-condition", "position": {"x": 0, "y": 200}, "config": {"conditions": [{"field": "data.result.promo.applied", "operator": "is_true", "value": "", "optional": true}], "combineWith": "and"}}, {"id": "n4", "name": "OnTrue", "type": "code", "position": {"x": -100, "y": 300}, "config": {"code": "return { marker: 'should not run' };"}}, {"id": "n5", "name": "OnFalse", "type": "code", "position": {"x": 100, "y": 300}, "config": {"code": "return { marker: 'no promo, treated as false' };"}} ], "connections": [ {"sourceNodeId": "n1", "sourceOutput": "main", "targetNodeId": "n2", "targetInput": "data"}, {"sourceNodeId": "n2", "sourceOutput": "main", "targetNodeId": "n3", "targetInput": "data"}, {"sourceNodeId": "n3", "sourceOutput": "true", "targetNodeId": "n4", "targetInput": "data"}, {"sourceNodeId": "n3", "sourceOutput": "false", "targetNodeId": "n5", "targetInput": "data"} ], "expect": { "n3": {"status": "completed", "output": {"result": false, "_activeBranch": "false"}}, "n5": {"status": "completed", "output": {"result": {"marker": "no promo, treated as false"}}} }, "expectMissing": ["n4"] }