<!--
{
  "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(_:identifier:_:_:otherwise:)-7g15l",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents29ParameterSummaryWhenConditionV_10identifier__9otherwiseACyxq_q0_Gs7KeyPathCyqd__qd_0_G_AA24StringComparisonOperatorOSSq_yXEq0_yXEtcAA0A6IntentRd__AA03AnyN5ValueRd_0_AA0A6Entity0P0_0P4TypeRPd_0_r0_lufc"
  },
  "title" : "init(_:identifier:_:_:otherwise:)"
}
-->

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

```
init<IntentType, Parameter>(_ keyPath: KeyPath<IntentType, Parameter>, identifier comparisonOperator: StringComparisonOperator, _ value: String, @ParameterSummaryBuilder<Intent> _ when: () -> WhenCondition, @ParameterSummaryBuilder<Intent> otherwise: () -> Otherwise) where IntentType : AppIntent, Parameter : AnyIntentValue, Parameter.Value.ValueType : AppEntity
```

---

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)