diff options
author | Sunil Shetye | 2018-07-16 18:13:55 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 11:36:15 +0530 |
commit | 8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch) | |
tree | 6b766b7c32effff12fa48cff99f11b9420136610 /js/Branching/SWITCH2.js | |
parent | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff) | |
download | sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2 sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip |
move the options in the loop
Diffstat (limited to 'js/Branching/SWITCH2.js')
-rw-r--r-- | js/Branching/SWITCH2.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js index a6febbdb..6cf5136f 100644 --- a/js/Branching/SWITCH2.js +++ b/js/Branching/SWITCH2.js @@ -32,13 +32,13 @@ function SWITCH2() { return options; } SWITCH2.prototype.set = function SWITCH2() { - this.rule = parseFloat(arguments[0]["rule"]) - this.thra = arguments[0]["thra"] - this.nzz = parseFloat(arguments[0]["nzz"]) - this.exprs = arguments[0]["exprs"] this.exprs = this.graphics.exprs; while (true) { - [ok,this.rule,this.thra,this.nzz,this.exprs] = scicos_getvalue("Set parameters",["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)","threshold a","use zero crossing: yes (1), no (0)"],list("vec",1,"vec",1,"vec",1),this.exprs); + var ok = true; + this.rule = parseFloat(arguments[0]["rule"]); + this.thra = arguments[0]["thra"]; + this.nzz = parseFloat(arguments[0]["nzz"]); + this.exprs = arguments[0]["exprs"]; if (!ok) { break; } |