Prev Up
Go backward to Extract command
Go up to Parameter-list generation/extraction commands

Loopextract command


LOOPEXTRACT <word-parameter-list-name> INTO <parameter-list> [ORDERED|REVERSED] {

<commands>

}



LOOPEXTRACT <group-parameter-list-name>.<item> INTO <parameter-list> [ORDERED|REVERSED] {

<commands>

}



LOOPEXTRACT <group-parameter-list-name> INTO <$-parameter-list> {

<commands>

}


LOOPEXTRACT works in the same way as the EXTRACT command except that if there are more valid words in the input parameter-list than available output words then event processing will loop over all combinations of input words for the associated <statements>. eg.

CREATELIST  LIST1  FROM  GE
   ...
LOOPEXTRACT  LIST1.E2  INTO  A B
    {
    INC MAT2(A,B)
    INC MAT2(B,A)
    }

So if there were 3 valid words in LIST1, say x, y and z, then LOOPEXTRACT would be executed for the following combinations of {A, B}: {x,y}, {x,z} and {y,z}.


support@ns.ph.liv.ac.uk

Prev Up