| [news.eclipse.modeling.gmt] Re: OAW xpt and counters |
Jim,
int count=0; «FOREACH getSomeListOfElements.select(e|condition-with-e)» count +=1; «ENDFOREACH»
~Karsten
Hello ... I am porting a code generator to OAW from XSLT ...
Is there a way i can store the number of times something meeting some foreach condition ?
I kinda wanna do something like this below half baked pseudo code:
int count = 0; «FOREACH //get some list ... //satisfy some condition count +=1; «ENDFOREACH»
Reason being ... is that i need to create an array of objects:
objects * myarray = new objects()[/*num of special objects in model*/]
Cheers,
Jim