Glass Material Reflection, when the other side is darker

Hey there,

i want to create a glass material that reflects when the opposite side is darker then the side you are watching from. So for example it is night, so it’s dark outside and you have turned the light on in your room and you try to look out the window. Does anyone knows how to do this? Would be great if someone could help me with this :slight_smile:

Greetings,