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

Conditional flows inconsistency? #2

Open
Ceynou opened this issue Oct 31, 2021 · 0 comments
Open

Conditional flows inconsistency? #2

Ceynou opened this issue Oct 31, 2021 · 0 comments

Comments

@Ceynou
Copy link

Ceynou commented Oct 31, 2021

**ONE 1-2+ Hours Task:**
- [ ] <%tp.file.cursor(1)%>
<%* if (tp.date.now("ddd") == "Sun") { %>
- [ ] Make Weekly Note
<%* } %>
<%* if (tp.date.now("D") == 1) { %>
- [ ] Make Monthly Note
<%* } %>
<%* if (tp.date.now("M-D") == "1-1") { %>
- [ ] Make Yearly Note
<%* } %>

Why is the weekly review at the end of the week but for the rest it's at the beginning?

You could also either do this

<%* if (tp.date.now("ddd") == "Mon") { %>

or


<%* if (tp.date.now("D", 1) == 1) { %>
- [ ] Make Monthly Note
<%* } %>
<%* if (tp.date.now("M-D", 1) == "1-1") { %>
- [ ] Make Yearly Note
<%* } %>
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

1 participant