Generate text that is semantically similar to this text: if the path is directly connected to the battery , then the switch affects a bulb .
if a bulb and a switch are in the same path the switch affects the bulb