IsDocumentCountMoreThan

Compares the number of documents in a batch with a parameter that you specify to let you manage the document size of your batches.

Syntax

bool IsDocumentCountMoreThan (string  count ,  string  returnTrueIfMore)

Parameters

returnTrueIfMore: determines whether the action returns True or False based on the results of the document count comparison.

Smart parameters are supported.

Returns

When set to True, returns True if the document count exceeds the value of the specified parameter. Otherwise, False.

When set to False, returns False if the document count exceeds the value of the specified parameter. Otherwise, True.

Level

All levels.

Details

This action compares the current batch document with the parameter that is provided and returns True or False depending on whether the count is exceeded by the provided parameter or not.

Example:
IsDocumentCountMoreThan(1, true)

This example returns True if there is more than 1 document in the batch

sDocumentCountMoreThan(1, false)

This example returns False if there is more than 1 document in the batch