@victoryfirst
"foreach" is a writing convention. Instead of writing 10 block of code, write 1 and the engine creates the 10 blocks. To see how this works, first load your map. In the menu in the upper left corner there is Export and under that is Export game.xml File (Bata). After saving open the file and you should see:
<attachment name="conditionAttachmentRTOLivonia" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Livonia"/>
</attachment>
<attachment name="conditionAttachmentRTOKarelia" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Karelia"/>
</attachment>
<attachment name="conditionAttachmentRTOBelarus" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Belarus"/>
</attachment>
<attachment name="conditionAttachmentRTOUkraine" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Ukraine"/>
</attachment>
<attachment name="conditionAttachmentRTOTatarstan" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Tatarstan"/>
</attachment>
<attachment name="conditionAttachmentRTOPoland" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Poland"/>
</attachment>
<attachment name="conditionAttachmentRTOSevastopol" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Sevastopol"/>
</attachment>
<attachment name="conditionAttachmentRTOKazakhstan" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Kazakhstan"/>
</attachment>
<attachment name="conditionAttachmentRTOFinland" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Finland"/>
</attachment>
<attachment name="conditionAttachmentRTOMoscow" attachTo="Russians" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
<option name="alliedOwnershipTerritories" value="1:Moscow"/>
</attachment>
So, the engine creates the difference condition.
Cheers...