Multiple 'Wait Until' Complications
jason_the_adams
Posts: 108
Has anyone had any complications when dealing with multiple "Wait Until" situations? Consider the following:
I'm really not sure and I'm still trying to figure this out, but wondered if anyone else has perhaps had any complication in this area as well. Incidentally, I apologize that my tabs are crazy inconsistent.
Thanks!
define_function myFunction() { if(something) { wait_until(nAnotherVariable) { select { active(nAnotherVariable == 100): { nSomeVariable = 1; } active(nAnotherVariable == 235): { nSomeVariable = 2; } } } } } define_function myActiveFunction() { myFunction() wait_until(nSomeVariable) { select { active(nSomeVariable == 1): { } active(nSomeVariable == 2): { } } } }Assume that it's already running through myActiveFunction, and myFunction is therefore subsequently called. I'm having a difficult time telling, but it seems as though the first WAIT_UNTIL is called, but once it reaches the second, it drops the first - the WAIT_UNTIL myFunction is then satisfied, but by that point the WAIT_UNTIL within myActiveFunction doesn't...care?
I'm really not sure and I'm still trying to figure this out, but wondered if anyone else has perhaps had any complication in this area as well. Incidentally, I apologize that my tabs are crazy inconsistent.
Thanks!
0
Comments
Me thinks that when the wait_until in myFunction() finally if ever executes it just runs the code in the select active and stops and doesn't return to myActiveFunction() because that's already been done.
Jeff
Gosh Jeff, you say things that I think so eloquently- I'd be sitting here trying to explain stuff for days! Haha!