<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 11.0.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMEventTrigger/predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HMEventTrigger(cm)predicateForEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:"
  },
  "title" : "predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:)"
}
-->

# predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent:secondSignificantEvent:)

Creates a predicate that evaluates whether the event occurred between two significant events.

```
class func predicate(forEvaluatingTriggerOccurringBetweenSignificantEvent firstSignificantEvent: HMSignificantTimeEvent, secondSignificantEvent: HMSignificantTimeEvent) -> NSPredicate
```

## Parameters

`firstSignificantEvent`

The first significant event.

`secondSignificantEvent`

The second significant event.

## Return Value

A predicate object that represents a condition to evaluate before executing the scene.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)