There's no need to write an IF ELSE for mouse clicks. If you've got, say 10 buttons (or whatever), and separate ON RELEASE handlers written for all those buttons, then each button will fire its own event handler, so there's no need to write code to detect which button was pressed.