index_of_key method

index_of_key(name)

Returns the zero-based index of the specified document variable in the collection.

def index_of_key(self, name: str):
    ...
ParameterTypeDescription
namestrThe case-insensitive name of the variable.

Returns

The zero based index. Negative value if not found.

See Also