Set global switch to 'on' or 'off' instead of just allowing toggle only

Would it be possible to add an option to set a global switch to on or off when I click something instead of only allowing us to toggle the global? That way when I click an item in a sidebar for instance, I can set other panels as invisible and the correct panel as visible.

It's a good idea, you can make this with a global list and formulas, but the option to make it without formulas it's good.

At the moment I use tasker but it’d be nice if was handled in KLWP

Here you have a tutorial from B. Craft on how using global text in Klwp, you can open one item and shut other, this work to visible too.

https://www.youtube.com/watch?v=kIFFe9Bnrm8&t=