Complex sentence: They were out of the building at the time, had they been at home they would have perished as the fire appliances were not able to reach the fourth floor.
Split into simpler sentences: They were out of the building at the time. Had they been at home they would have perished, as the fire appliances were not able to reach the fourth floor.