Hi, I have a list of dates in a list called _inputlist, I then need to run these sequentially through a loop and test each entry to see whether it is in the past, is today or in the future. This much is easy enough as I can create a custom transformer, use the DateDifferenceCalculator to calculate the number of days between the date value of the list item and the value of a TimeStamper and then test for values => 0.
The next part is the one I am having trouble with. I would like to store those dates that pass the tester into another list (called _outputlist) but I'm not sure how to assign the values to this list.
As an example, this is how I would like it to work;
_list{0} = _outputlist{0}
Â
_list{1} = (failed tester, discard value)Â
_list{2} = _outputlist{1}Â
_list{3} = (failed tester, discard value)Â
_list{4} = _outputlist{2}Â
_list{5} = (failed tester, discard value)I suppose I want something that will allow me to set @Value(_outputlist{@Value(_outputcounter)}) = @Value(_list{@Value(_counter)}) with _outputcounter and _counter being controlled independently.
I've tried AttributeCreator but whilst I can enter @Value(_list{@Value(_counter)}) as the Attribute Value I don't seem to be able to enter a similar expression in the New Attribute column.
I'm probably missing something simple but any assistance would be appreciated.
Many thanks
Darren