Make variable to read which door is open

Hey guys,
in my projects there are doors which can be open.
I did this with a linetrace so the doors can be open. If you look at the doors a widget say which key have to be pressed to interact with that. but my problem is how the see which door is open. didnt find out a way to make a variable where is listed which doors are opened and which closed. Maybe anybody can help me with this problem.

Please try to state what you want to achieve with what and then what you tried, instead of textwalling us.

You get the door object in your line trace, so what prevents you from casting it to Door and then read your variable?