switch( MapChange ){ case 0: // the same as 'if( MapChange == 0 )' { } case 1: // the same as 'if( MapChange == 1 )' { } return 1;}