Creating Button that Hides or Shows & Dynamic Label

Hi,
I've got 2 Folders: "Dogs" and "Cats" and inside them are folders with lots of names.
I've created many buttons that have specific use either in the "dogs" or "cats"- context.
Therefor I tried to hide the buttons that are not useful in the context of the current folder.
Is there a command that can hide a button when the current path has "Dog" or "Cat" in its name?
The closest thing I could find was @disableifpath:!*\Dogs* which disables a button.

Additionally I couldn't find the syntax to let a "Label"-Button display the current folder name. Is must be something like {sourcepath} as the Label-name, what am I missing?

Please link your account.