Skip to main content

I’m  combining lines based on end noded while keeping some attributes in a list for each original lines (1). Then I create a new attribute based on the lists (2) with conditions based on numbers in the lists (3).

 

 

 

 

I would like to set up the condition statement dynamically: the number of lists varies each time I run the workflow so I would like to pick numbers from the last list available (in this case PR_list{2}) and do something like: PR_list{0}.ORIGINE < PR_list{max}.ORIGINE instead of choosing the list manually. 

 

Is it possible to create a dynamic condition in the condition value definition? 

One way to do this is to use a ListElementCounter and use that result. Something like

@Value(PR_list{@Evaluate(@Value(_element_count)-1)}.ORIGINE)


Reply