How to conditionally set a menu item title?

I’m trying to create a simple menu to assign to my iPhone action button. One item in that menu is to toggle the silent mode on the phone. I would like the Title to be either “Enable” or “Disable” (Silent Mode) depending on the current state. Then a few other static actions are in the menu as well (linked below).

https://www.icloud.com/shortcuts/e77512fef2b6476d92f1a9ac2cff2a25

Note that I’m using the Actions library:

Use your “is silent mode on?” action before the menu too. Use it to set a variable that contains the appropriate verb to enable or disable, then use the variable in the name of your menu item.