Problem with the script in the button
my friend has a problem with a script in the button. He put a script like this:
For first several clicks on the button it works, after that, it doesn't work... Can someone help with advice?
GeoGebra file is in the attachment.