"If Then Else" action isn't working as expected

I'm trying to assign KM to toggle between two menu commands:

1%20-%20Menu%20commands

I want KM to look in that menu, and if Voice Colors is NOT enabled, it should enable it.
Conversely, if Voice Colors IS enabled, it should select None. Seems straightforward, so I created an If Then Else action:

2%20-%20KM%20action

Well, the first part of the action is failing. If Voice Colors is NOT enabled, when I hit the trigger, nothing happens. But if I manually enable Voice Colors, then hit the trigger, KM does select None (as it should).

So, clearly KM can access the menu, as it's able to select ONE of the two items. But it won't select the OTHER one.

Also, I just disabled this action and created a new, basic one that simply selects "Voice Colors" (with no If/Then)—and it works. So, once again, KM knows where the menu is, and it's able to select that item. But it won't select it when it's embedded within the If Then Else action.

So, I'm stumped. Are there any known issues with the If Then Else action? If not, any other suggestions?

In the menu you show, both “None” and “Voice Colors” appear to be enabled. So I expect they are both always enabled.

What you need to test is if Voice Colors is marked (which is what the system means by the tick, although it can be other characters instead of a tick too).

Try that.

Keep the Keyboard Maestro editor window open and visible in the background, want watch the displayed result on the If Then Else action:

image

That will tell you what Keyboard Maestro is seeing as far as the condition goes. Verify that it changes as the marking of the menu changes.

I see. I thought "Enabled" meant "Marked." But now I understand the distinction.

That fixed it. Thanks!