Ifset help

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

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".)

Wow... I don't know why I didn't try that sooner.