[all[tiddlers]has[foo]get[foo]]
- VS - [all[tiddlers]get[foo]]
Which is better? Why? Always?
Thanx!
[all[tiddlers]has[foo]get[foo]]
- VS - [all[tiddlers]get[foo]]
Which is better? Why? Always?
Thanx!
The second option will be slightly faster, because it only has to go through all the tiddlers once.
The first option will go through all tiddlers and check them for the has field.
With the generated list it does a second run to get[foo] - So that’s the difference.
If you need both the tiddler titles that have a field named: foo, you should save the first run in a list-variable. Then reuse that variable with enlist<listVar>
and the second filter get[foo]
.
-m