obsidian-resources icon indicating copy to clipboard operation
obsidian-resources copied to clipboard

Conditional flows inconsistency?

Open Ceynou opened this issue 3 years ago • 0 comments

**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
<%* } %>

Ceynou avatar Oct 31 '21 13:10 Ceynou