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

PreProc
Syntax
PreProc();
Description
Determines whether or not StreamServer is running in pre-process phase.
Returns
1
0
Example
//!multicolumn!
agatha christie 1890
alfred hitchcock 1899
//Check if the server runs in preprocess phase
//If it does, perform the substitution
if (PreProc() = 1)
{
$newborn = AddSubst("author.tbl", "alfred", 1, "100");
}
This changes the table to show that Alfred was born 1999 if the server runs in the preprocess phase.
OpenText StreamServe 5.6 Updated: 2013-03-01