Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do I add an "or" condition? #9

Closed
digitalmaster opened this issue Oct 18, 2022 · 4 comments
Closed

Question: How do I add an "or" condition? #9

digitalmaster opened this issue Oct 18, 2022 · 4 comments

Comments

@digitalmaster
Copy link

I have a case where I want to add a condition where the page referenced could be either #p1 or #p2 or p3. If I add these as separate conditions it looks like it adds em as an "and" operation.

How would you go about achieving this? I'm sure i'm doing something wrong here 🙈
image

@dvargas92495
Copy link
Collaborator

Still in development: #4

but often times there are more performant ways to workaround the OR. In this case, each of p1, p2, and p3 could themselves have a tag on them, let's say #Priority, which would allow you to replace

node        references  title   p3, p2, p1

with

node        references        tag
tag         has child         block
block       references title  Priority      

@digitalmaster
Copy link
Author

Still in development: #4

Nice 👏🏽

Re: Workaround

Hmm.. not sure I follow. Ultimately what I'd like to be able to do is just get a sorted list of all the TODO's on that page with a priority tag (p1, p2, p3).

@dvargas92495
Copy link
Collaborator

Right all I'm saying is you can concretely define what it means for a tag to be a priority tag. In this way, you are more concretely querying for what you intended:
Screen Shot 2022-10-19 at 10 13 58 AM

@digitalmaster
Copy link
Author

Oh brilliant. That works 🥳 .. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants