Folks,
I am working on and idea to return status values for a given tiddler
according to the result of a filter.
Most of you would be familiar with a filter such as this;
[<currentTiddler>has[item-completed]get[item-completed]]
Basically when the current tiddler has the field item-completed (containing
a value) we Get the content of that field.
We can then display the content of item-completed ONLY for tiddlers that
meet the condition "has[item-completed]". Basically we say when this
condition is true return this.
I was thinking what if we could simply return a literal, or title when the
condition is true, so I Instinctively tried
[<currentTiddler>has[item-completed]title[completed]]
Hoping for this the return the value "completed" which may or may not be
the title of a tiddler. Alas it does not work. It simply returns completed
for every item in the list. The condition test is forgotten.
I have tried variations like
[<currentTiddler>has[item-completed]get{shortname!!item-completed}]
where the tiddler shortname has a field item-completed with the value
"completed"
Unfortunately what I have tried so far always ignores the condition before
hand
There are plenty of "work around's", nested lists etc.. However such
behaviour would be helpful
*Does anyone know another way to return a value as a result of a condition
in the middle of a filter?*
Regards
Tony
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1aeae676-2f26-4728-b8bd-5512809d7e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.