Is there a way to make a button do something but something else if a condition is stated?

My first thought was to put an if condition under the condition I want saying “If button is down” but that’s not an option, and I’m trying to make the button disappear briefly to show a different button but it’s not working properly

When button is click
   if condition is true
      [blocks]
   else
      [blocks]

If you get stuck, post a screenshot of your blocks.