Validates if a value matches any one of a specified set of values.