<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/ParameterSummaryWhenCondition/init(_:_:_:_:otherwise:)-3qvla",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents29ParameterSummaryWhenConditionV____9otherwiseACyxq_q0_Gs7KeyPathCyxqd_0_G_AA28ComparableComparisonOperatorO9ValueTypeAA07_IntentM0PQyd__q_yXEq0_yXEtcs23ExpressibleByNilLiteralRd__0M0Qyd_0_Rsd__AA03AnyoM0Rd_0_SLANRQr0_lufc"
  },
  "title" : "init(_:_:_:_:otherwise:)"
}
-->

# init(_:_:_:_:otherwise:)

```
init<Value, Parameter>(_ keyPath: KeyPath<Intent, Parameter>, _ comparisonOperator: ComparableComparisonOperator, _ value: Value.ValueType, @ParameterSummaryBuilder<Intent> _ when: () -> WhenCondition, @ParameterSummaryBuilder<Intent> otherwise: () -> Otherwise) where Value : ExpressibleByNilLiteral, Value == Parameter.Value, Parameter : AnyIntentValue, Value.ValueType : Comparable
```

---

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)