When used with mains electricity this type of switch must be in the live wire, but it is better to use a DPST switch to isolate both live and neutral.SPST = Single Pole, Single Throw
For example, a SPDT switch can be used to switch on a red lamp in one position and a green lamp in the other position.
A SPDT toggle switch may be used as a simple on-off switch by connecting to COM and one of the A or B terminals shown in the diagram. A and B are interchangeable so switches are usually not labelled.