---
title: "ArgumentMatcher.contains(argumentName:substring:)"
framework: evaluations
role: symbol
role_heading: Case
path: "evaluations/argumentmatcher/contains(argumentname:substring:)"
---

# ArgumentMatcher.contains(argumentName:substring:)

A value that indicates that the argument must be present and its string value must contain the specified substring.

## Declaration

```swift
case contains(argumentName: String, substring: String)
```

## See Also

### String matching

- [ArgumentMatcher.pattern(argumentName:regex:)](evaluations/argumentmatcher/pattern(argumentname:regex:).md)
- [ArgumentMatcher.hasPrefix(argumentName:prefix:)](evaluations/argumentmatcher/hasprefix(argumentname:prefix:).md)
- [ArgumentMatcher.hasSuffix(argumentName:suffix:)](evaluations/argumentmatcher/hassuffix(argumentname:suffix:).md)
