No, if you want to conditionally ignore an input you must code it up yourself. One boolean variable per pin would do it, or you could use an array and write a wrapper around digitalRead() to filter your inputs according to the "ignore array".
It might not be the best way to code things however - since the meaning of the code is then dependent on the past history in hard to understand ways - often its best to code things in terms of explicit states and have a clear state-transition logic that's easy to understand. Each state is coded separately so its behaviour is in one place in the code and not dependent on anything else. It is then much easier to test piece-by-piece.