RPL equivalents to BREAK, CYCLE, EXIT, etc.?
|
06-07-2014, 06:40 PM
Post: #7
|
|||
|
|||
RE: RPL equivalents to BREAK, CYCLE, EXIT, etc.?
That doesn't work like BREAK/EXIT/CYCLE etc. because if you are in the middle of a bunch of calculations or deeply nested you still have to finish all that stuff before the loop starts again and exits.
I did actually push the loop counter past the index and used that in another piece of code a few weeks ago. I agree it is also a good technique in certain situations, probably one that people might miss since it's not documented. I was wondering if the index value was protected, and I found I could do whatever I wanted with it. Not exactly a safe coding practice, but pretty useful What I was looking for when I opened the thread was an immediate exit from a loop. IFERR seems to be the best (only?) way to do that. It ain't OVER 'till it's 2 PICK |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)