2020-11-08 09:34:05 +00:00
|
|
|
created: 20201107154352695
|
2020-11-20 18:37:23 +00:00
|
|
|
modified: 20201118174726982
|
|
|
|
tags: [[Operator Examples]] [[toggle Operator]]
|
2020-11-08 09:34:05 +00:00
|
|
|
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]]" />
|
|
|
|
```
|
2020-11-09 18:27:45 +00:00
|
|
|
|
|
|
|
To toggle between a value pair:
|
|
|
|
|
|
|
|
```
|
|
|
|
<$action-listops $tiddler="target" $field="my-field" $subfilter="+[toggle[todo],[done]]" />
|
|
|
|
```
|