---
title: "evaluate(with:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nspredicate/evaluate(with:)"
---

# evaluate(with:)

Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies.

## Declaration

```swift
func evaluate(with object: Any?) -> Bool
```

## Parameters

- `object`: The object against which to evaluate the predicate.

## Return Value

Return Value true if object matches the conditions specified by the predicate, otherwise false.

## See Also

### Evaluating a Predicate

- [evaluate(with:substitutionVariables:)](foundation/nspredicate/evaluate(with:substitutionvariables:).md)
- [allowEvaluation()](foundation/nspredicate/allowevaluation().md)
