Hi,
I was hoping to understand how can i create a recursive macro
I am thinking if i have
TiddlerA Field1 = “2” tag = “test”
TiddlerB Field1 = “2” tag = “test”
TiddlerC Field1 = “2” tag = “test”
How can i create a macro that would go through all tiddlers tagged test that has a field1 value greater than “1” one by one , and set their field value to “2”
I realize i can just list all of them and put a button with an action set field widget to set all the tiddlers field1 value to “2”
but i was wondering how can i do the process sequentially ,
so this filter brings the first tiddler
[tag[test]]:filter[get[field1]compare:number:gt[1]]+[first[]]
then i set the field to “1”
<$action-setfield $field="field1" $value="1" />
then now this makes only 2 tiddlers remaining that are matching the filter criteria
how do run the same process again , 2 more times until there are no tiddlers matching the criteria for which the process would terminate
Thank you