(Recursive) nested loops and IFs?
|
12-17-2015, 08:20 PM
(This post was last modified: 12-17-2015 08:25 PM by chromos.)
Post: #6
|
|||
|
|||
RE: (Recursive) nested loops and IFs?
Thank you, Didier, you helped me very much.
PHP Code: IF ΠLIST(EXECON("EXPR(&1)>=0 AND EXPR(&1)<=9",L5)) THEN 2) Nested loops: I didn't try your code yet, but I will. There is ΠLIST again so I should study its usability much more. ----- Meanwhile I updated my program again and I replaced nested loops with strings executed via EXPR. Fortunately, code isn't unreadable (I moved lines within FOR-DO and END; into subroutine which helped). Before: PHP Code: FOR Loop1 FROM L3(1) TO L4(1) DO After (I declared Loop1, ... , Loop20 for sufficient headroom): PHP Code: //nested loops preparation I found interesting feature (or is it bug?): list variable cannot be used as FOR-DO counter (which is a pity). Example: PHP Code: LoopList:=MAKELIST(0,X,1,15); ---- It seems the program works now with any number of inequalities and with number of variables up to 20 which is more than enough. I will test it on more caches before uploading. Thank you again very much, Didier. Prime G2, 15C CE |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(Recursive) nested loops and IFs? - chromos - 12-17-2015, 07:17 AM
RE: (Recursive) nested loops and IFs? - chromos - 12-17-2015, 07:28 AM
RE: (Recursive) nested loops and IFs? - Didier Lachieze - 12-17-2015, 11:50 AM
RE: (Recursive) nested loops and IFs? - chromos - 12-17-2015, 12:15 PM
RE: (Recursive) nested loops and IFs? - Didier Lachieze - 12-17-2015, 04:17 PM
RE: (Recursive) nested loops and IFs? - chromos - 12-17-2015 08:20 PM
RE: (Recursive) nested loops and IFs? - Didier Lachieze - 12-18-2015, 08:06 AM
RE: (Recursive) nested loops and IFs? - chromos - 12-18-2015, 10:25 PM
RE: (Recursive) nested loops and IFs? - Didier Lachieze - 12-18-2015, 10:40 PM
RE: (Recursive) nested loops and IFs? - chromos - 12-18-2015, 11:32 PM
RE: (Recursive) nested loops and IFs? - Didier Lachieze - 12-19-2015, 12:00 AM
RE: (Recursive) nested loops and IFs? - chromos - 12-19-2015, 12:05 AM
RE: (Recursive) nested loops and IFs? - chromos - 01-17-2017, 11:46 AM
|
User(s) browsing this thread: 4 Guest(s)