Switch— definition, example and pronunciation in USA and UK English

Noun (thing)
Switch
a block of code or function causing a program to change its default behavior
The programmer preferred using a switch statement to many if/else statements.