Example one: do_stuff_to_the_thing(x); if(x==y){ do_more_stuff_to_the_thing(x); do_other_stuff(x); } continue_doing_stuff(y); Example two: if(do_stuff_to_the_thing(x)){ if(x==y){ do_more_stuff_to_the_thing(x); do_other_stuff(x); } perhaps_do_this_stuff(x); } continue_doing_other_stuff(y);