if(c == 'a'){ foo(); }else if(c == 'b'){ bar(); foobar(); }else{ foobar(); }