When I open lib://Studio, the LABELCATEGORY=studio is shown in the label menu. That's ok.
However when I go to lib://Muziek the LABELCATEGORY=muziek the corresponding labels are not shown but just the LABELCATEGORY=studio remains listed whatever I do. Should I reset something? There must be something wrong in my coding. I'm definitely not an expert in that.
I don't think it's possible using @ifpath, but you could do something similar by creating a separate toolbar for each set of labels, putting one command on one toolbar and the other on the other, and then turning the appropriate toolbars on for the folders you want it in.
Turning toolbar(s) on for particular folders can be done via Preferences / Folders / Folder Formats. Create either a path format (matches one folder, and optionally sub-folders) or a wildcard path format (can match multiple folders, using the wildcards you're using already) and edit it. On the Options tab there's a toolbar drop-down.
The toolbars themselves can be created via Settings > Customize Toolbars.
It partially works! However I made a library shortcut on my desktop. When I double click on it , the assigned toolbar for the folder is not displayed. I first have to press F5 to display the corresponding toolbar. When I open a default lister first and then press the shortcut on my desktop it works like it should and the toolbar is being displayed. Strange?
Solved!!
In the Preferences/ Default Lister as you stated I turned the 'Ignore toolbars" of the default Lister to ON (it was off) and now the corresponding toolbar is properly displayed when I open the folder from the desktop. This problem was a tricky one... at least for me! Nice, nice, very nice (Ambrosia)!!