---
title: value
framework: storekit
role: symbol
role_heading: Instance Property
path: storekit/entitlementtaskstate/value
---

# value

The entitlement value if the task is successful.

## Declaration

```swift
var value: Value? { get }
```

## Discussion

Discussion This value is nil while the value is loading, or if it fails to load for any reason. Use value as a convenience to access the entitlement value in code that doesn’t depend on the reason the value can’t be accessed if it fails to load.

## See Also

### Getting the transaction with the entitlement

- [transaction](storekit/entitlementtaskstate/transaction.md)
