mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-28 03:52:43 +00:00
66636d1a86
* Docs for is[draft] * Better error handling for suffixes * Docs for search-replace operator * Added tests for search-replace operator * Docs for toggle operator
21 lines
445 B
Plaintext
21 lines
445 B
Plaintext
created: 20201107154352695
|
|
modified: 20201107155030228
|
|
title: toggle Operator (Examples)
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<<.using-days-of-week>>
|
|
|
|
<<.operator-example 1 """[list[Days of the Week]] +[toggle[Wednesday]]""">>
|
|
|
|
To toggle a tag in a tiddler:
|
|
|
|
```
|
|
<$action-listops $tiddler="target" $tags="+[toggle[done]]" />
|
|
```
|
|
|
|
To toggle a title in a field:
|
|
|
|
```
|
|
<$action-listops $tiddler="target" $field="my-field" $subfilter="+[toggle[done]]" />
|
|
```
|