If you always know what the upper max list size will be then you can put foreach numbers 0 1...999999 if you really needed as nothing will happen for those outside the actual size of the MV. If you're doing this in a dashboard, you could technically create a token with the numbered steps and use the token in the foreach, e.g. | foreach $steps_to_iterate$ where steps to iterate is calculated in a post process search of the list and simply | stats max(eval(mvcount(list))) as max_list
| eval r=mvjoin(mvrange(1, max_list + 1, 1), " ") with this <done> clause in the dashboard search <done>
<set token="steps_to_iterate">$result.max_list$</set>
</done>
... View more