[help] How to get player rotation?

Hi!
This is my first time posting here. up until now, every question i had I tried searching on youtube but this, I dont know how to search.

I designed a light switch and whenever the player enters its triggerbox, you can press E to turn on the lights. that works good and fine (I also added a flickering effect when turning on). What i want to add now is whenever the player has a rotation between -135° and -45° you can turn it on. I know I need to use a branch there, but how do I get the character rotation is between those numbers?