Replication formulas
A replication formula selects the documents that are pulled into the current database during replication.
A replication formula must end with a SELECT statement. If the last statement in the formula is a logical expression, Domino turns it into a SELECT statement by inserting the reserved word SELECT.
@Commands are not allowed.
A replication formula runs on the server or workstation containing the formula's database.