We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04673c6 commit bbaf7bfCopy full SHA for bbaf7bf
1 file changed
nodes/core/core/89-trigger.js
@@ -37,11 +37,11 @@ module.exports = function(RED) {
37
if (!isNaN(this.op1)) { this.op1 = Number(this.op1); }
38
if (!isNaN(this.op2)) { this.op2 = Number(this.op2); }
39
if (this.op1 == "true") { this.op1 = true; }
40
- if (this.op2 == "true") { this.op1 = true; }
41
- if (this.op1 == "false") { this.op2 = false; }
+ if (this.op2 == "true") { this.op2 = true; }
+ if (this.op1 == "false") { this.op1 = false; }
42
if (this.op2 == "false") { this.op2 = false; }
43
if (this.op1 == "null") { this.op1 = null; }
44
- if (this.op2 == "null") { this.op1 = null; }
+ if (this.op2 == "null") { this.op2 = null; }
45
try { this.op1 = JSON.parse(this.op1); }
46
catch(e) { this.op1 = this.op1; }
47
try { this.op2 = JSON.parse(this.op2); }
0 commit comments