Relation Loop Key Segment Loops

MapPrep

Relation Loop Key Segment Loops

 

There are two special loop constructs that may be used within a relation loop. They are the "from key segment loop" and the "to key segment loop". These loops allow you to iterate through the key segments associated with the current relations "from key" and "to key".

 

Both of these loops behave just like a key segment loop within a key loop. All key segment loop expansion tokens and key segment loop expression tokens can be used in both of these loops. In addition for key segments associated with structure fields, you can also use field loop expansion tokens and field loop expression tokens.

 

From Key Segment Loops

 

From key segment loops allow you to iterate through the key segments associated with the key in the current structure that is identified as the relations "from key". From key segment loops may be in a multi-line form:

 

<RELATION_LOOP>

[code]

<FROM_KEY_SEGMENT_LOOP>

code</FROM_KEY_SEGMENT_LOOP>

[code]

</RELATION_LOOP>

 

Or they may be in an in-line form:

 

<RELATION_LOOP>

[code]

[code] <FROM_KEY_SEGMENT_LOOP> code </FROM_KEY_SEGMENT_LOOP> [code]

[code]

</RELATION_LOOP>

 

To Key Segment Loops 

 

To key segment loops allows you to iterate through the key segments associated with the key in a different structure that is identified as the relations "to key". To key segment loops may be in a multi-line form:

 

<RELATION_LOOP>

[code]

<TO_KEY_SEGMENT_LOOP>

code
</TO_KEY_SEGMENT_LOOP>

[code]

</RELATION_LOOP>

 

Or they may be in an in-line form:

 

<RELATION_LOOP>

[code]

[code] <TO_KEY_SEGMENT_LOOP> code </TO_KEY_SEGMENT_LOOP> [code]

[code]

</RELATION_LOOP>

 

 

 


Copyright © 2018  Synergex International, Inc.