What I’m trying to do
I’m trying to have a list of homework todos which are not empty and not done yet.
Things I have tried
The code that seems to mostly work is this:
dv.taskList(dv.pages('"myfolder"').file.tasks
.where(t => !t.completed)
.where(t => !(t.text == "")))
However, I have a task that looks like this:
- 1. task
and it’s not getting listed. This seems to somehow be linked to the 1 at the start, if I remove it, it shows up. So
- . task
would show up.
Everything else seems to work, I would like it to actually show all the non-empty tasks, because I can’t rely on this if it behaves unreliably^^
This is a list of the alternatives I tried for the second condition:
.where(t => !(t.text === “”)))
.where(t => !(t.text.length == 0)))
.where(t => !(t.text == “”)))
.where(t => !(t.text.empty === true)))
They all show this same behavior…
What am I doing wrong?^^ Thank you in advance <3