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