Generate text that is semantically similar to this text: when the switch and the bulb are contained in the same path
if a bulb is in a closed circuit with a battery and a switch the switch will affect the bulb .