Script functions reference > Script functions in alphabetical order > C > ConnectorPages

ConnectorPages
Syntax
ConnectorPages();
Description
Returns the total number of pages (in the current job) that will be processed on the current connector. This function replaces the QueuePages function.
Note:
Note:
This function does not work for StoryTeller processes. This is because StoryTeller does not run the pre-process phase meaning that the number of pages is not known.
Returns
A number.
Example
$cp=connectorpages();
if(num($cp)<10)
{
$text="Smaller than 10";
}
OpenText StreamServe 5.6.2 Updated: 2018-01-26