Raising global vars with buttons

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

on(release){_global.armor++}

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