summaryrefslogtreecommitdiff
path: root/js/Branching/M_SWITCH.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/M_SWITCH.js')
-rw-r--r--js/Branching/M_SWITCH.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js
index eae88075..4c531d1b 100644
--- a/js/Branching/M_SWITCH.js
+++ b/js/Branching/M_SWITCH.js
@@ -20,6 +20,12 @@ function M_SWITCH() {
return this.x;
}
M_SWITCH.prototype.get = function M_SWITCH() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ base:["zero base indexing (0), otherwise 1",this.base],
+ rule:["rounding rule: int (0), round (1), ceil (2), floor (3)",this.rule],
+ }
+ return options;
}
M_SWITCH.prototype.set = function M_SWITCH() {
this.nin = parseFloat((arguments[0]["nin"]))