---
title: "makeOutcomeFor(event:withValues:)"
framework: CareKit
role: symbol
role_heading: Instance Method
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ocktaskcontrollerprotocol/makeoutcomefor(event:withvalues:)-4sb0b"
---

# makeOutcomeFor(event:withValues:)

Creates and returns an outcome for a specific event.

## Declaration

```swift
func makeOutcomeFor(event: OCKAnyEvent, withValues values: [OCKOutcomeValue]) throws -> OCKAnyOutcome
```

## Parameters

- `event  `: The event object for which the function creates outcome values.
- `values  `: The outcome values for the event.

## See Also

### Handling Task Selection

- [appendOutcomeValue(withType:at:completion:)](carekit/ocktaskcontrollerprotocol/appendoutcomevalue(withtype:at:completion:)-3est6.md)
- [eventFor(indexPath:)](carekit/ocktaskcontrollerprotocol/eventfor(indexpath:)-6lqed.md)
- [setEvent(atIndexPath:isComplete:completion:)](carekit/ocktaskcontrollerprotocol/setevent(atindexpath:iscomplete:completion:)-11kln.md)
- [initiateDeletionForOutcomeValue(atIndex:eventIndexPath:deletionCompletion:)](carekit/ocktaskcontrollerprotocol/initiatedeletionforoutcomevalue(atindex:eventindexpath:deletioncompletion:)-4hoy0.md)
- [initiateDetailsViewController(forIndexPath:)](carekit/ocktaskcontrollerprotocol/initiatedetailsviewcontroller(forindexpath:)-5gptc.md)
