The situations he describes in verses 36-38 are conditions for what he requests verse 39.
"so that the enemy forces them to leave"