This
schematic diagram is a light-operated, remote-controlled solidstate switch circuit to handle lamp. While in darkness, the resistance of Light Dependent Resistor (LDR) is extremely hight, it shoots up to megohm range. As a result, the triac isn't going to have gate drive and therefore it doesn't conduct.