How to disable action node when another is used (need help)

So I’m working on a new project, I set up 2 input action buttons, one to transform into an object to hide and other that will turn you into a cloud of mist. So I have no idea how to set it up the right way, but what I want to do is make it so if you transform into the object you CANT turn into the mist. And then the same the other way around.

maybe you can try to add a boolean like IsTransforming , then every time you used the transform object Action/Spell/skill w/e you call it, then make the IsTransforming comes True.

and you can add a branch in the Mist Action, and check is IsTransforming is true, then do nothing. if not, turn yourself in mist.