Logic Template

A Logic Template serves as a bridge between the data-store and the Display templates. It allows you to define searches to locate records matching a specific criteria. Define filters to remove records for a more precise result set. Define sorts to arrange records within the result set.

A Logic Template is composed of seven different components:

Logic Template Components




Used to instruct the system to perform a specific task. The most common commands are used to search indexes, organize results by category, filter results and sort results.

entering data

Assigning variables, defining literals and creating dynamic data.

processing control constructs

Used to selectively process only certain sections of the Logic Template based upon conditions that exist at the time of the search request. Two types of processing control constructs exist: conditional processing constructs and multiple choice construct.


Used to document the Logic Template so that it may be more easilly maintained and modified by others.

system values

Values used to define necessary constants, control processing, return information about the system or log activity through time.


Including equivalence operators, logical operators, mathematical operators, bitwise operators, and relational operators.


Numeric, string and attribute helper functions.

Assignment statements are processed in the order in which they appear within the Logic Template -- subject to the control of any existing processing control constructs.

Commands are not order dependent, but are subject to control by the processing control constructs. The processing order of the commands is determined by logic internal to the data retrieval system, but is influenced by the pass number assigned to the command when one exists. For more information on pass numbers, see the individual commands.