If your true and false flags equate to one and zero, you can write your loop like this:
until ($worker1Finished & $worker2Finished) { ... }
Update: s/zero and one/one and zero/
-- Ken
In reply to Re: Short circuits in Logical AND (&&)
by kcott
in thread Short circuits in Logical AND (&&)
by vishi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |