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

# init(format:arguments:)

Creates a predicate by substituting the values in an argument list into a format string and parsing the result.

## Declaration

```swift
init(format predicateFormat: String, arguments argList: CVaListPointer)
```

## Parameters

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

## Return Value

Return Value A new predicate by substituting the values in argList 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:argumentArray:)](foundation/nspredicate/init(format:argumentarray:).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)
