Need help with bathroom light piston

Hello, I currently have a latching piston working correctly. However I just bought a contact sensor for the bathroom door so I can bypass the motion sensor when in the bathroom for a while (I.e. Showering). Problem I am having is I am not sure the best way to integrate the contact sensor into my piston to bypass the motion sensor and keep the lights on when the door is closed.

I would do
(bathroom motion is active or bathroom door is closed)
Illum is less than x
Then actions

But if
Bathroom motion is inactive and bathroom door is open
Then actions

This should work, is it not?