Hello, I'm sort of new to most electronics, but a recent interest in circuits led me to ask myself how circuits for certain light switches work. Besides the most simple, obvious case with one light and one switch, I've seen other cases which I'm curious about. The first one would probably be two switches and one light, each of the switches cancels each other out. (Say if you are inside a house and you want the porch light to be able to be turned on from both inside and outside, with this light switch installed both inside and outside the house, you can turn on/off the light from the inside, but you can also do the same thing from the outside). The second, and probably harder, would be 4 lights and one switch, where repeatedly flipping the switch turns on one more light every time. Say you flip it on the first time, and one light turns on; you flip it off and then on 2 lights turn on; you flip it on and off again, 3 lights turn on; you flip it on and off once more, 4; and if you do it one last time only one light turns on. If you leave the switch off for a while at say, right after 2 lights, and turn it back on, it'll be 1 light and not 3. I know I'm not very good at explaining things (and probably going to kill someone with those semicolons), but an explanation would be awesome.
Thanks in advance.
Thanks in advance.