int myValue; switch myValue{ case 0: doSomething(); case 1: doSomethingElse(); default: //else break; //Or call another function }