Applies a Modifier if the given predicate is true.
The original Modifier if predicate is false, otherwise the result of applying modify to the original Modifier.
The condition to check.
The Modifier to apply if predicate is true.