whenPredicate

Create a condition that unlocks when a custom predicate returns true.