Maybe this helps:
"If you do not survive, then you did not survive." Complex sentence of a dependent (if you) and independent (then you) clause. In such a sentence, you always separate the two clauses with a comma.
"If you are attacked and do not survive, then you did not survive." (same deal here, the first clause is still dependent, but a little longer)
"Heaven forbid it actually happening that you are attacked" (this is an independent clause)
"If you are attacked, heaven forbid it actually happening, and do not survive, then you did not survive." (now, "heaven forbid it actually happening" modifies the first statement. With clauses that offer supplementary information, you typically separate it from the rest of the text with two commas.