@hideif with global variable

I created a toolbar with two buttons:

Button1 has a single statement @hideif:$glob:abc
Button2 has a single statement @hideif:!$glob:abc

If no "abc" global variable exists and the toolbar is opened the first button is visible and the second button is not.
If an "abc" global variable is defined neither button is visible. :exclamation: :question:

Regards, AB

I should probably have added the question.... Is this working as designed?

Unless there is an exclusion for the use of negation in combination with a (global) variable it would seem to follow that if one of these conditions is true then the other must be false.

Regards, AB

..and I'm still hoping that the developers will consider adding a @hideifnotfound: modifier which would eliminate the need to use a global variable in order to realise the following use case.

@hideifnotfound:C:\Program Files\MPC-HC
cd "C:\Program Files\MPC-HC"
@async:"C:\Program Files\MPC-HC\mpc-hc64.exe" {filepath}

12.3.3 has a fix for @hideif not working with negated global variables.