Added in 1.9.3

$switchbar

Returns $true if [[Switchbar_Control||Switchbar]] is visible, otherwise $false.

See also Switchbar, /switchbar.