while( not ( $worker1Finished eq 'true' and $worker2Finished eq 'true' ) ) { # ... }