---
title: predicate
framework: combine
role: symbol
role_heading: Instance Property
path: combine/publishers/trylastwhere/predicate
---

# predicate

The error-throwing closure that determines whether to publish an element.

## Declaration

```swift
let predicate: (Publishers.TryLastWhere<Upstream>.Output) throws -> Bool
```

## See Also

### Inspecting publisher properties

- [upstream](combine/publishers/trylastwhere/upstream.md)
