i have a condition if ($percentage >= 120) and 3 things to execute if the condition is ok. $insert1 $insert2 $delete now the problem is how to setup the first 2 variabiles to be executed first and if was inserted correct then the 3rd variable to be executed.