.winset "window.is-visible=true ? window.is-visible=false : window.is-visible=true"
But what would you do if you wanted to toggle the visibility of a window, but only if another window is visible? I would expect to do this.
.winset "window2.is-visible=true ? window1.is-visible=true ? window.is-visible=false : window.is-visible=true"
This, though, does not work, and attempting to use nested ternaries can lead to unexpected results. In order to actually achieve this, you would have to use .winset to send a command verb to the server. That verb would have to winget() the windows' visibility, evaluate the same if-if-else expression, and then winset() the results. As you can see, this is not very intuitive.
I request that nested ternaries be supported for .winset, so that complex expressions can easily be evaluated client-side, without the need for a four-way trip.