---
title: "init(format:argumentArray:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nspredicate/init(format:argumentarray:)"
---

# init(format:argumentArray:)

Creates a predicate by substituting the values in a specified array into a format string and parsing the result.

## Declaration

```swift
init(format predicateFormat: String, argumentArray arguments: [Any]?)
```

## Parameters

- `predicateFormat`: The format string for the new predicate.
- `arguments`: The arguments to substitute into predicateFormat. Values are substituted in the order they appear in the array.

## Return Value

Return Value A new predicate by substituting the values in arguments into predicateFormat, and parsing the result.

## Discussion

Discussion For details of the format of the format string and of limitations on variable substitution, see Predicate Format String Syntax.

## See Also

### Creating a Predicate

- [init(format:arguments:)](foundation/nspredicate/init(format:arguments:).md)
- [init(format:_:)](foundation/nspredicate/init(format:_:).md)
- [init(_:)](foundation/nspredicate/init(_:).md)
- [withSubstitutionVariables(_:)](foundation/nspredicate/withsubstitutionvariables(_:).md)
- [init(value:)](foundation/nspredicate/init(value:).md)
- [init(block:)](foundation/nspredicate/init(block:).md)
- [init(fromMetadataQueryString:)](foundation/nspredicate/init(frommetadataquerystring:).md)
