diff options
Diffstat (limited to 'data_structures/RELATIONALOP.js')
-rw-r--r-- | data_structures/RELATIONALOP.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data_structures/RELATIONALOP.js b/data_structures/RELATIONALOP.js index 3e2145c..72fd81c 100644 --- a/data_structures/RELATIONALOP.js +++ b/data_structures/RELATIONALOP.js @@ -6,16 +6,17 @@ function RELATIONALOP () { var label = "<"; var model = scicos_model(); - model.sim=list("relationalop",4); - model.in = new ScilabDouble([1],[1]); + model.sim=list(new ScilabString(["relationalop"]),new ScilabDouble([4])); + model.in1 = new ScilabDouble([1],[1]); model.out = new ScilabDouble([1]); model.ipar=new ScilabDouble([ipar]); model.blocktype = new ScilabString(["c"]); model.dep_ut = new ScilabBoolean([true,false]); - var exprs = [[ipar.toString()],[0.toString()]]; + var exprs = [[string(ipar)],[string(0)]]; var gr_i = []; this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); this.x.graphics.style = new ScilabString(["fontSize=13;fontStyle=1;displayedLabel="+label]); + return new BasicBlock(this.x) } |