View Single Post
Old 10-28-2006, 12:51 AM
clarsen clarsen is online now
Registered User
Join Date: 10-28-2006
Posts: 1
multiple OR-AND trees

an example search i'm having trouble creating is one that lists "interesting" tasks where an interesting task is:

@Category does not equal deferred
and @Next action equals Yes
and Date completed equals ""
   and ( Due date equals ""
   or @category does not equal waiting
   and Due date less than or equal to 1 week from today
   or @Category equals waiting
   and Due date less than or equal to today  )
however, a task with category = waiting, due date 3 days from now shows up in the results.

the complex search is indented like above resulting in what i think is the correct parenthesization. I'm assuming that an expression x and y or z and w will have both x and y, z and w evaluated first before doing the 'or' of the two.
Reply With Quote