jhn431
1
What am I doing wrong here? I'm trying to create a button that toggles between sortby modes without using a variable.
@toggle disable
@ifset:SORTBY=name
Set SORTBY=name SORTREVERSE=Off SORTORDER=Folders
@ifset:else
Set SORTBY=modified SORTREVERSE=on
Leo
2
You just need to swap the two commands:
@toggle disable
@ifset:SORTBY=name
Set SORTBY=modified SORTREVERSE=on
@ifset:else
Set SORTBY=name SORTREVERSE=Off SORTORDER=Folders
(The original was saying "if you are currently sorting by name, change to sorting by name".)
jhn431
3
Wow... I don't know why I didn't try that sooner.