if ($var) { #do this... } #get on with the rest of the script