
## contains(name) {#str}

Determines whether the collection contains a document variable with the given name.


```python
def contains(self, name: str):
    ...
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | str | Case-insensitive name of the document variable to locate. |

### Returns

``True`` if item is found in the collection; otherwise, ``False``.


### See Also

* module [aspose.words](../../)
* class [VariableCollection](../)

