How can we know wherethe the button is clicked or not

In php we have a command that let we know if the button is clicked :
isset(buttonId).
In there any command that have the same function in rail?
If anyone know, please show me. thanks :slight_smile: