Reply To: RE: Just what I was waiting for

This example will enumerate and print names of all compositions of an element:

<%==SIM:ForEach:Element.Relations==%>

<%==SIM:If:Equals(Relation.StartRoleAssociationType,"Composition")==%>

Composition: <%==SIM:Relation.Name==%>

<%==SIM:EndIf==%>

<%==SIM:If:Equals(Relation.EndRoleAssociationType,"Composition")==%>

Composition: <%==SIM:Relation.Name==%>

<%==SIM:EndIf==%>

<%==SIM:EndFor==%>

Dusan Rodina - softwareideas.net 10 February 2012 15:05:00

New Comment

Comment
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]