Quote:
Originally Posted by BetterRed
(#r2ryesno:"true") and (#yesno:"false") and (#yesnoread:"false")
|
"true" and "false" are not the same as "yes" and "no". Or at least they aren't when using three values, which the OP is. "true" means the value has been set and "false" the value hasn't. So:
is actually the same as
Code:
#r2ryesno:no or #r2ryesno:yes
Quote:
IMO the parentheses make it easier to read
|
I agree but not with how you have used them

I would write it as:
Code:
#r2ryesno:yes and (#yesno:no and #yesnoread:no)
To me, that makes it clearer what the purpose of the search is. But, reading between the lines of the OP question, I would probably code this as:
Code:
#r2ryesno:yes and not (#yesno:yes or #yesnoread:yes)
And as an example of find those with blank, the following should show all the books that not been set to yes or no for any of the lists:
Code:
#r2ryesno:false and #yesno:false and #yesnoread:false
Quote:
From another old boy - you'll probably find it a lot easier to if you change the name of those variables to in_reading_list, ready_to_read and have_read
|
I'm definitely with you one this. Clear names make this sort of thing so much easier.