contains method

contains

Returns a value indicating whether this collection contains a table with the specified name.

def contains(self, name):
    ...
Parameter Type Description
name str The case-insensitive name of a table to look for.

Returns: bool: True if the collection contains a table with the specified name; otherwise False.

contains

Returns a value indicating whether this collection contains the specified table.

def contains(self, table):
    ...
Parameter Type Description
table DocumentTable A table to look for.

Returns: bool: A value indicating whether this collection contains the specified table.

Aliases

These names call contains too, limited to the overloads listed.

Alias Accepts
contains_file contains_file(name)
contains_string contains_string(name)
contains_document_table contains_document_table(table)

See Also