diff options
author | Sunil Shetye | 2018-06-18 11:08:50 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 11:41:08 +0530 |
commit | 4c77977aec3b84daaa2a7cfb2a1ebe936c9fb550 (patch) | |
tree | 098bf8518b0d3a9072a334eea74fd0e41e4cbcbc /js/Misc/CONSTRAINT2_c.js | |
parent | dc0c2354295fc1c80d5c0e10b053e5926861b5d3 (diff) | |
download | sci2js-4c77977aec3b84daaa2a7cfb2a1ebe936c9fb550.tar.gz sci2js-4c77977aec3b84daaa2a7cfb2a1ebe936c9fb550.tar.bz2 sci2js-4c77977aec3b84daaa2a7cfb2a1ebe936c9fb550.zip |
support a(index:index,index) syntax
Diffstat (limited to 'js/Misc/CONSTRAINT2_c.js')
-rw-r--r-- | js/Misc/CONSTRAINT2_c.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js index a96b98b8..1b46dd38 100644 --- a/js/Misc/CONSTRAINT2_c.js +++ b/js/Misc/CONSTRAINT2_c.js @@ -29,12 +29,12 @@ ask_again=true; } if ((!ask_again)) { for (i=1;i<=N;i+=1) { -if (!((id(i)==0)||(id(i)==1))) { +if (!((id[i-1]==0)||(id[i-1]==1))) { ask_again=true; x_message(["Id(i) must be either","0 when x\'(i) is not present in the feedback","1: when x\'(i) is present in the feedback"]); break } -if ((id(i)==0)) { +if ((id[i-1]==0)) { id[i-1]=-1; } } |