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