Detecting whether a door is open or not

How do I detect whether a door is open or not?

http://wiki.garrysmod.com/page/Entity/GetSaveTable on the prop_door_rotating.

Took another look.
Managed to find m_eDoorState, thank you!

Seems that:
2 = open
1 = opening
0 = closed
3 = closing