waitforstart and if conditions