I am looking for a way to have two separate operations / functions / \"blocks of code\" run when something is clicked and then a totally different block when the same thing
modifying the first answer you are able to switch between n functions :
my stupid example b1 b2 b3 bn