but if the door is open i dont need to open the door, so maybe it’s

check if the door is open

if it’s open, walk in the room

if it’s not open, open the door, then walk in the room