Lighthouse Studio

Loop Functions

Lighthouse Studio includes a number of loop functions for use within Looping (asking a question or series of questions multiple times for each element of a list).  

 

The "Sawtooth Script" column below gives the syntax for Loop Functions.  

 

Sawtooth Script:

Description:

AIELoopList (Loop_Name,

 Question_Name, Value)

Similar to the AIE list function.  Adds the list item from the loop list to the constructed list if the answer to the question is equal to Value.  (See additional information.)

AIGLoopList (Loop_Name,

 Question_Name, Value)

Similar to the AIG list function.  Adds the list item from the loop list to the constructed list if the answer to the question is greater than the Value.  (See additional information.)

AILLoopList (Loop_Name,

 Question_Name, Value)

Similar to the AIL list function.  Adds the list item from the loop list to the constructed list if the answer to the question is less than the Value.  (See additional information.)

ANELoopList (Loop_Name,

 Question_Name, Value)

Similar to the ANE list function.  Adds the list item from the loop list to the constructed list if the answer to the question is not equal to the Value.  (See additional information.)

LOOPITERATION ( )

LOOPITERATION (Loop_Name)

Returns the current iteration count for the list item for the current loop.  Loop Name is used in case more than one loop applies (e.g. nested loops).

LOOPLABEL ( )

LOOPLABEL (Loop_Name)

Returns the label for the list item for the current loop.  Loop Name is used in case more than one loop applies (e.g. nested loops).

LOOPVALUE ( )

LOOPVALUE (Loop_Name)

Returns the parent list item number for the list item for the current loop.  Loop Name is used in case more than one loop applies (e.g. nested loops).

 

Created with Help & Manual 8 and styled with Premium Pack Version 4 © by EC Software