Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2013, 03:13 PM   #1
HFC3
Enthusiast
HFC3 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2013
Device: Kindle Touch
[SOLVED] NOT EQUAL (!=) and OR in Search

How do you code a "not equal" condition in a search filter?

Help says any Python expression is accepted, but I can't get != to work;
{field}!={value}
{field}:!={value}
{field}:!{value}

All return no results.

Also, how do you code an OR? .{val}.{val} works for an itemized list field as an AND, but how would I code an OR?

And, how do you code an AND or an OR where the blank value is also OK?

Thanks!

Last edited by HFC3; 07-07-2013 at 03:12 AM. Reason: Annotate solved
HFC3 is offline   Reply With Quote
Old 07-06-2013, 04:38 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I think you missed the obvious

You can use the words 'and', 'not' and 'or' (without the quotes) and use brackets for grouping.
itimpi is offline   Reply With Quote
Advert
Old 07-06-2013, 11:07 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
http://manual.calibre-ebook.com/gui....arch-interface
kovidgoyal is offline   Reply With Quote
Old 07-07-2013, 03:11 AM   #4
HFC3
Enthusiast
HFC3 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2013
Device: Kindle Touch
LOL I thought of that about 45 minutes after posting the thread while driving to Phoenix. I hate when that happens!

Thanks
HFC3 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I select books where #language is equal to #original_language? arspr Library Management 31 03-26-2011 06:02 AM
Are all K3s created equal? vega07 Amazon Kindle 23 12-16-2010 07:02 AM
eBook pricing still not equal between stores jswinden Amazon Kindle 11 09-07-2010 10:01 PM
eBook pricing still not equal between stores jswinden Sony Reader 0 09-07-2010 12:38 PM
"E-book access not so equal" from the Daily Illini Nate the great News 1 12-11-2009 01:16 PM


All times are GMT -4. The time now is 06:25 PM.


MobileRead.com is a privately owned, operated and funded community.