✅ Solved: Discord mute/deafen logic

I decided to recreate the little profile/mute/deafen widget from discord for practice. In discord, the deafen button will mute your mic, and if both are switched off, the unmute button will also undeafen.

Can that logic be replicated in rive, or does it have to be in code? It seems like you need to have one input (deafen) trigger the other input (mute) which isnt possible.

I have attached a video showwing the dilemma. If I deafen from the state of them all being switched on, I know how to trigger the animation of both of them being disabled, but the mute input doesnt switch over. I have tried various approaches, including nested artboards, and have reached the point where I can’t figure it out on my own.

Any advice?

discord state logic.mov