24th July 2026 at 11:58pm
This example combines four attributes so a row of buttons can show which colour is active:
setandsetTowrite the chosen colour to a state tiddlerselectedClassmarks the button whosesetTomatches the current value ofsetdefaultgives the value to compare against while thesettiddler does not yet exist
Because default is red, the Red button starts out selected. Click another colour to move the selection.
| title | Output |
Selected colour: red