togglecommand

noun
UK /ˈtɒɡ.əl.kəˌmɑːnd/
US /ˈtɑː.ɡəl.kəˌmænd/

A toggle command is a special instruction that turns something on or off each time you use it.

Press the toggle command to switch the flashlight on, then press it again to turn it off.


OTHER MEANINGS

2. A keyboard shortcut that flips a setting between two states.

The toggle command for mute is Ctrl+M.

3. A programming instruction that changes a value back and forth between true and false.

The script uses a toggle command to show or hide the menu.

4. A voice or text instruction that turns a feature on or off.

Saying the toggle command turned the lights off.