Command Reference : Function Reference : Function Reference: P
  
 
@pageexist
Indicator for whether a page exists in the workfile.
Syntax: @pageexist(str)
str: string
Return: integer
Returns a 0 or 1 depending on whether the page specified by str exists in the current workfile.
Examples
The command
scalar pgs = @pageexist("Monthly")
creates a scalar that takes the value 1 if there is a page in the default workfile named “Monthly”.
if (@pageexist("Quarterly") = 1) then
pageselect Quarterly
endif
tests for whether the page “Quarterly” exists in the workfile, and if it does, makes it the active page.
Cross-references
See also @pagecount and @pagelist.