Can you change emissive brightness depending on the world lighting conditions?

Hey guys, I’m just making a generic, tileable window material and I want the ‘lights inside’ to turn on when it’s dark so I’m wondering if you can change the emissive brightness inside the material depending on world lighting conditions?

So if it’s day / light the emissive node would be at 0 however if it’s night / dark the value would be 1+.

Thanks in advance for any help!