---
title: "values(for:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/intentvaluequerydefinition/values(for:)"
---

# values(for:)

Performs the value query with the given input and returns matching results.

## Declaration

```swift
func values(for input: some IntentValueConvertible) async throws -> ResolvedValueQueryResult
```

## Parameters

- `input`: The value to use in this query.

## Return Value

Return Value Results matching the query.

## Discussion

Discussion Use this function to verify that the system can query your app for app entities as shown in the following example: let searchQuery = definitions.valueQueries[     "LandmarkIntentValueQuery" ] let result = try await searchQuery.values(     for: "Arizona" ) let name: String = try result.items[0].name
