Function changing button

How to make a button change its function when its pressed ?

Use an if/else statement and conditional variable (if variable = this, do this, else, do that)

I didn't understand, can u please send a pic of the block combination?

image

tysm