It depends on the bank and the house. You can usually get an inspection and a mortgage contingency. I have never seen a contingency for the sale of another home. If the home is not mortgagable due to condition, you would have to pay cash.
What else are you looking for?