Condition (/;)

WMA link


Condition[pattern, expr]

pattern /; expr

places an additional constraint on pattern that only allows it to match if expr evaluates to True.

The controlling expression of a Condition can use variables from the pattern:

Condition can be used in an assignment:

PatternTest