Skip to content

Commit d0a3997

Browse files
committed
docs: Add query.file.hasProperty() & query.file.property() to Query Properties.md
1 parent 6545caa commit d0a3997

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/Scripting/Query Properties.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ This page documents all the available pieces of information in Queries that you
3434
| `query.file.folder` | `string` | `'root/sub-folder/'` |
3535
| `query.file.filename` | `string` | `'file containing query.md'` |
3636
| `query.file.filenameWithoutExtension` | `string` | `'file containing query'` |
37+
| `query.file.hasProperty('task_instruction')` | `boolean` | `true` |
38+
| `query.file.hasProperty('non_existent_property')` | `boolean` | `false` |
39+
| `query.file.property('task_instruction')` | `string` | `'group by filename'` |
40+
| `query.file.property('non_existent_property')` | `null` | `null` |
3741

3842
<!-- placeholder to force blank line after included text --><!-- endInclude -->
3943

@@ -42,6 +46,8 @@ This page documents all the available pieces of information in Queries that you
4246
1. The presence of `.md` filename extensions is chosen to match the existing conventions in the Tasks filter instructions [[Filters#File Path|path]] and [[Filters#File Name|filename]].
4347
1. `query.file.pathWithoutExtension` was added in Tasks 4.8.0.
4448
1. `query.file.filenameWithoutExtension` was added in Tasks 4.8.0.
49+
1. `query.file.hasProperty()` was added in Tasks X.Y.Z.
50+
1. `query.file.property()` was added in Tasks X.Y.Z.
4551

4652
## Values for Query Search Properties
4753

0 commit comments

Comments
 (0)