Hi Hegart,
Thank you for your efforts!
I took a look at your demo. I like the trick of using one tiddler with multiple fields for variables. Simple and elegant.
The
calc plugin can be used to increment a value in a button
(
http://tobibeer.github.io/tb5/#calc). This increments by the
incrementer value:
<$button set="$:/_Data/variables!!current-count" setTo=<<calc $:/_Data/variables!!current-count + by:$:/_Data/variables!!incrementer>>>+</$button>
So that is now a part of the pseudocode:
<$edit-text tiddler="$:/_Data/variables" field="current-count" size="5" />
<$edit-text tiddler="$:/_Data/variables" field="incrementer" size="5" />
<$edit-text tiddler="$:/_Data/variables" field="filter" size=50 />
<$list filter={{$:/_Data/variables!!filter}}>
for each tiddler in list
set field 'sort_order' to <<
current-count
>>
increment <<
current-count
>> by <<incrementer>>
next tiddler
It's a question of triggering an action inside a list, in such a way as to make it act like a "for" loop.
-Matthew