if($x==$y){ print "good return\n"; }else{ # put in error handling code here }