if (whatever_the_test_for_the_condidtion_is) { die("A complete and total disaster happened"); } # proceed with your code here