Eh, I didn't know that was parental control in this forum. I made a foul-mouthed joke in my previous posting and it was published truncated. Here is a "clean" version:
You're looking for 'die()' or 'exit()':
<?php
if ($worse_happens="TRUE")
{error_function(); die;}
else {proceed();}
?>
OR:
<?php
if ($worse_happens="TRUE")
{die(error_function());}
else {proceed();}
?>
OR:
<?php
if ($worse_happens="TRUE")
{error_function(); exit;}
else {proceed();}
?>
OR:
<?php
error_function()
{print "tough luck!"; exit;}
if ($worse_happens="TRUE")
{error_function();}
else {proceed();}
?>
Read the manual.
HTH,
Luciano ES
Santos - SP - Brasil