No, the bit you quoted is actually supposed to rely on page front matter. See the front matter of the notes I’ve posted in my previous reply. Sorry for repeating myself, but it includes values for:
- Tags
- Type
- Status
- Time
- Due
- Priority
- Completed
- Notes
My goal with my-query-that-doesn’t-work is to use ONE of those values, a particular tag, as the source for a list of notes. So, if it’s “people/mary”, it should show all notes that include that tag. Then, to filter down those notes and show only those that don’t have a value set in either “Completed”, “Due”, or “Priority”. Or, in the case of completed, also skip those that have a “Yes” value.
However, it doesn’t work. Here’s an alternative that according to what you said should work, since it doesn’t contain anything task-specific:
List
FROM #people/nitsa
WHERE (Completed="No" OR Completed="" AND !Completed="Yes") AND (priority="" OR Priority="" OR due="" OR Due="")
SORT Due
I must stress that Completed, Priority, and Due exist in the notes front matter.
I should also note that my use of “!completed” was because “that’s the way I know you can check if a value is set”, and saw some such examples when searching for solutions. I’m no programmer, but I’ve been banging on keyboards for over 30 years, and I’m also building scripts with AHK. AFAIK, when you’re using an exclamation mark in front of a parameter, in many programming languages it’s the equivalent of checking if the value isn’t set - that was my intention. On the opposite hand, if you use just the value it means it does exist.
Note that I don’t mention how I have experience in tech to prove I’m somehow right or better than others, for I’m not. Obviously. I wouldn’t be asking here if I (believed I) was. I’m just saying that I was under the impression “it works this way”, and I’m almost sure I saw similar queries in other threads here. That’s why I can’t wrap my head around why this query doesn’t work in my case, and can’t seem to be able to find a solution .