How to test whether any specific toolbar or the Favorites Bar is displaying?

Is there a command to test whether any specific toolbar or the Favorites Bar is displaying?

Yes, with the Evaluator function IsChecked:

@label:IsChecked("Toolbar NAME=MyToolbar TOGGLE") ? "Yes" : "No"

Works outside the Evaluator as well.

The default File Display toolbar has a Favorites button which is hidden when the Favorites Bar is visible, which you can see in Customize mode.

@lxp Thanks for your response.

What is the syntax for a toolbar with a space in it?

Nothing I tried worked.
NAME="My Toolbar"
"NAME=My Toolbar"
"NAME="My Toolbar""

NAME="My Toolbar" (same syntax for all similar commands/args)

@Leo This does not work for me; The label is empty - no yes or no.

Here is the toolbar, -foobar2000 JEG:

What is going on?

Here is the button:

If it's inside a string in Evaluator code, the quotes need to be doubled:

@label:IsChecked("Toolbar NAME=""Favorites Bar"" TOGGLE") ? "Yes" : "No"

(Literal Strings under Evaluator Grammar [Directory Opus Manual])

@Leo Thank you.