in reply to Re^3: Dynamic if loop
in thread Dynamic if statement

Well code generation might be an answer. If you need to build the condition once and evaluate many times. Which doesn't really seem to be the condition in this case, but sometimes it's good to do all the work you can upfront, outside the loop and then just call the generated and eval""ed function within the loop.

Not the easiest thing to write and debug, but sometimes the best solution performance-wise.

Jenda
Enoch was right!
Enjoy the last years of Rome.