There are boolean nodes (search the node red flows site) but if the values are coming in on different paths then you may need to use a Join node to get them into one message. See this post in the cookbooks. Also worth looking through the cookbook to see what is there. Also all the node red docs of course. You can use a Trigger node with a bit of extra logic to do the 15 min bit, have a look at this post earlier today for how to do it for a slightly simpler case. See what you can get going and then come back if still stuck.
To create an AND node, you just put your nodes in series. So for your specific use case, you could use a Trigger node with a 15 minute delay (resetting if humidity < 65%) that sends your "on" message, followed by a Switch node to check the status of your window (you can use a flow/global context to store the current state of the window).
The problem with that is that if the window status becomes valid after the humidity signal triggers then you won't get an event, unless the humidity one keeps sending messages. For situations like this I think it is less confusing to Join the two messages and do the logic, then any time either of them changes the state of the other one is already known.
Good call if the use case requires either situation to trigger the "OFF" event, which is not how I read it. Also would allow you to avoid the use of context variables, though you have to go through the extra step of defining the msg.parts. You'd still need to put the various checks post join to trigger down an "ON" or "OFF" path, or you could use - node-red-contrib-match (node) - Node-RED to do a single node to check status of all related messages.
You can also just setup checks for an "OFF" path of either below 50% humidity OR the window opening as "OFF" triggers and avoid the need for Join.
Like everything in Node-Red, lot's of different ways to set things up.
yes one of the conditions should be sufficient to switch off.
Getting into node red and working with home assistant is not easy for me. I am too old and have no experience with programming so far.
But i find it very interesting to realize my own ideas.
many thanks for the help