contains method

contains(name)

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

def contains(self, name: str):
    ...
ParameterTypeDescription
namestrCase-insensitive name of the document variable to locate.

Returns

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

See Also