logo-header

 
 

syntax

  • loop(template, number)

definition

loop(template, number) results in a set of instantiated templates. The number of instantiations is specified by the number argument. This number is a maximum, a stop condition could result in less instantiations. A currvalue and nextvalue item need to be configured within the template.

description

Optional a stop condition can be configured. This condition need to be configured as a parameter with the name stop and an expession with a boolean condition. If the condition becomes true, the loop will not continue.

The loop function is used for dynamic modelling.

since version

5.15

example

Template LoopTemplate
{ parameter<uint32> NrIter; container currValue; container nextValue; container results; { parameter<uint16> LoopWaarde := NrIter; } container loop := loop(LoopTemplate, 5);
}

OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904