From 975ae6706b4ac868425193cf25bcbbb268051b5d Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 18 Jul 2018 16:28:24 +0530 Subject: handle empty array in comparison --- js/Events/IFTHEL_f.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Events') diff --git a/js/Events/IFTHEL_f.js b/js/Events/IFTHEL_f.js index 3a2d4287..30d8eada 100644 --- a/js/Events/IFTHEL_f.js +++ b/js/Events/IFTHEL_f.js @@ -30,7 +30,7 @@ function IFTHEL_f() { } IFTHEL_f.prototype.set = function IFTHEL_f() { this.exprs = this.graphics.exprs; - if (this.exprs==[]) { + if (this.exprs.length==0) { this.exprs = string(1); } if (size(this.exprs,"*")==1) { -- cgit