Script functions reference > Script functions in alphabetical order > P > Pages

Pages
Syntax
Pages();
Description
Returns the number of pages in the Process. Not applicable in the StreamServe pre-process phase.
For StoryTeller Processes, the function must be called within a Content Dependent Fragment, otherwise there is no way to know how many pages the document will contain.
Returns
Example
$pgs=pages();
if(num($pgs)=3)
{
$count=3;
}
OpenText StreamServe 5.6 Updated: 2013-03-01