[TW5] How to find all tiddlers with field price more then 100 an less than 200?

98 views
Skip to first unread message

Siniy-Kit

unread,
Jan 5, 2016, 1:59:49 PM1/5/16
to TiddlyWiki
Hi! I have many tiddlers with field price. This field contain number only. is it possible to make filter and show the list of tiddlers with price between 100 and 200?

Tobias Beer

unread,
Jan 5, 2016, 2:20:52 PM1/5/16
to TiddlyWiki
Hi Siniy-Kit,

You can use tobibeer/eval ...with math.js or plain js.

Best wishes,

Tobias. 

sini-Kit

unread,
Jan 6, 2016, 2:58:29 AM1/6/16
to TiddlyWiki
Thank you Tobias! Your plugin is great, but very difficult for me. I don't find  clear examples with filters, with the  result  list of tiddlers.

I make tiddler with field  foo:3

<$eval>{{!!foo}} >1</$eval> I get true
 
{{{ [[]eval[{{!!foo}}>1]] }}} I get false

I cant  understand why, and how to put it in filter and get the title of tiddler if "true"



вторник, 5 января 2016 г., 22:20:52 UTC+3 пользователь Tobias Beer написал:

Erwan

unread,
Jan 6, 2016, 6:00:16 AM1/6/16
to tiddl...@googlegroups.com

Hi Siniy-Kit,

there is also Jed's ExtraFilterOperators: http://ooktech.com/jed/ExampleWikis/ExtraFilterOperators/
It's not as general as Tobias plugin but probably easier to use.

Erwan



On 05/01/16 18:59, Siniy-Kit wrote:
Hi! I have many tiddlers with field price. This field contain number only. is it possible to make filter and show the list of tiddlers with price between 100 and 200?

--
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 post to this group, send email to tiddl...@googlegroups.com.
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/a21cc269-d7e4-4990-8e30-2676615fc7d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tobias Beer

unread,
Jan 6, 2016, 8:27:08 AM1/6/16
to TiddlyWiki
Hi sini-Kit,

Your plugin is great, but very difficult for me. I don't find  clear examples with filters, with the  result  list of tiddlers. 

Mhhh, in the examples there is one called outputting input titles with a truthy value.

I cant understand why, and how to put it in filter and get the title of tiddler if "true"

So, it works like this:

{{{ [[]eval:$[{{!!foo}}>1]] }}}

Note the $ suffix! This instructs the eval filter to return titles with truthy values instead of the values.

Best wishes,

Tobias.
Reply all
Reply to author
Forward
0 new messages