To break and connect the flow of electricity.
Electrical switch is used to perform all the logical operations in a digital circuit.
There is no digital electronics with out an electrical switch.
Usually (in positive logic), The logic level is considered as HIGH (1) when switch is OFF, and as LOW (0) when switch is ON.
Please click brainliest answer and thanks.