# Raising global vars with buttons

**URL:** https://forum.kirupa.com/t/raising-global-vars-with-buttons/248965
**Category:** Uncategorized
**Created:** [January 14, 2008, 3:58am UTC](https://forum.kirupa.com/t/raising-global-vars-with-buttons/248965 "2008-01-14T03:58:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leonthelion](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@leonthelion](https://forum.kirupa.com/u/leonthelion)
#### Post date: [January 14, 2008, 3:58am UTC](https://forum.kirupa.com/t/raising-global-vars-with-buttons/248965/1 "2008-01-14T03:58:17Z")

</div>

Can you raise global variables with buttons? I tried doing what I do with \_roots but it didn’t work.

```php
on(release){_global.armor++}

```

Is there a different type of code you use or something? Thanks
