[each[color]]
As long as the value of the field is unique (i.e. has not been encountered before), the title is appended to the output.
If a tiddler does not contain field
F
, it is treated as if the value of the field were empty.
In real use, you would usually be using "each" in conjunction with "get" or some other filter, so this would not be a problem.
[each[nella]get[nella]]
<$list filter="[has[nella]each[nella]get[title]]">
</$list>
Note that if a tiddler does not contain field <<.place F>>, it is treated as if the value of the field were empty. Thus, a filter expression such as `[each[color]]` will return one tiddler that doesn't have a `color` field. To obtain just the tiddlers that have a non-blank value for the `color` field one can use `[each[color]has[color]]`.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1884997e-13b2-4839-9223-bae4810ec025%40googlegroups.com.
Although the current behaviour is confusing, we can’t change it without breaking backwards compatibility. I’ve updated the docs to include a note pointing out a workaround:Note that if a tiddler does not contain field <<.place F>>, it is treated as if the value of the field were empty. Thus, a filter expression such as `[each[color]]` will return one tiddler that doesn't have a `color` field. To obtain just the tiddlers that have a non-blank value for the `color` field one can use `[each[color]has[color]]`.Best wishes
Jeremy
On 9 Dec 2019, at 06:47, Mohammad <mohamma...@gmail.com> wrote:
Agree!
On Monday, December 9, 2019 at 2:21:36 AM UTC+3:30, TonyM wrote:Mohammad,I was curious when I saw that myself. However even using something like [!is[system]] generates a new false entry.This needs a FixTony
On Monday, December 9, 2019 at 8:07:07 AM UTC+11, Mohammad wrote:I got what you mean Mark!So this way always ONE tiddler which has not such field will be included.Very confusing! :-)--Mohammad--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
On 9 Dec 2019, at 09:15, Mohammad <mohammad...@gmail.com> wrote:
- does has a performance impact if we use [has[color]each[color]] instead of [each[color]has[color]]? which is recommended?
- How we can separate tiddlers with no field from tiddler have field but empty?