concept hard condition in category probabilistic programming

This is an excerpt from Manning's book Practical Probabilistic Programming.
The difference between a condition and a constraint is that in a condition, some of the states are declared to be impossible (have a probability of zero). In contrast, constraints change the probability of different states but don’t make a state impossible unless the constraint result is zero. Conditions are sometimes called hard conditions, because they set a hard-and-fast rule about the possible states, while constraints are called soft constraints.
A hard condition is a function from the value of an element to a Boolean. It specifies a property that a value must satisfy to have positive probability. To be precise, any possible world in which the element has a value that doesn’t satisfy the condition will have probability 0. Therefore, a condition can be seen as multiplying the probability of a possible world by 0 if the value of the element doesn’t satisfy the condition, and by 1 if it does satisfy the condition.
The crux of the problem is that you have a hard condition that absolutely has to be satisfied for a proposal to be accepted. You saw in section 11.2.3 that hard conditions can be a problem for importance sampling. The same is true for MCMC. With hard conditions, it can be difficult to find any state that satisfies the conditions in the first place. And then, after the algorithm has found one, it can be hard to move to any other.