MaybeOriginally Posted by NydaCode:/*bool a,b,c maybe passed in by parameters*/ if (a) { ... code for section a.... }else if (b) { ...code for section b.... }else if (c) { ...code for section c.... } else return;//if you're not going to do anything if these tests fail... ... common code for all sections ...