It\'s also useless to set a global var when it\'s only going to be used within that event, try using local vars: /var %var = value