Stitcher language building blocks

To construct statements in the stitcher language, use the programming constructs, relational operators, and datatypes.

Programming constructs

The following table lists the stitcher language programming constructs.

Table 1. Stitcher language programming constructs  
Stitcher keyword Description
delete Deletes lists created by the RetrieveOQL function.
else Executes statements where the conditional test specified with the if loop is not passed.
for Defines a loop that is repeated a specified number of times.
foreach Performs an action on each member of a list of datatype RecordList.
if Executes statements if a conditional test is passed.
while Defines a loop that repeats while a condition holds true.

Datatypes

The following table describes the stitcher language datatypes.

Table 2. Stitcher language datatypes  
Datatype Description
int Stores integer values.
Record Stores a single returned record.
RecordList Stores lists created by the RetrieveOQL function.
text Stores string values.

Relational operators

The following table lists the relational operators.

Table 3. Stitcher language relational operators  
Operator Description
== Test for equality.
!= Test for non-equality.
< Test for less than.
> Test for greater than.
<= Test for less than or equal to.
>= Test for greater than or equal to.