Join the forums now, and start posting to receive access to our Scripts Vault!
if (some condition) { ///execute some code}else {// or else execute this other code} //no more processing from here
if (some condition NOT MET) { exit ('Some reasons WHY');}// Continue processing...
if (some validated variable == "some value") { $somevariable = "somevalue";}else {$somevariable = "someOthervalue";}// Continue processing depending of the value in $somevariable
try{ if (!$someCondition) throw new Exception ('Condition failed ... '); if (!$someOtherCondition) throw new Exception ('Some Other Condition failed ...');}catch (Exception $e){ echo $e->GetMessage (); exit ();}