-- Are you going to keep playing that loud music all night?
-- No.
-- Thank goodness, or I'd go crazy! (= Thank goodness. If you kept playing that loud music all night, I would go crazy!)
___________
-- Stop cursing or I'll slap you! (= If you don't stop cursing, I'll slap you!)
___________
You'd better be good, or Santa Claus won't bring you any presents this Christmas.
(= If you aren't good, Santa Claus won't bring you any presents this Christmas.)
___________
CJ