if ($condition1) { # statement 1 # statement 2 # statement 3 next; } # more code if ($condition2) { # statement 1 # statement 2 # statement 3 next; }