Hoặc
The heavy rain prevented everybody from going out.
Had the rain not been heavy, everybody could have gone out.