Set value for a global variable through the App

Hi again, in my code, I have 3 global variables declared in the function header. One is a Boolean and the other two are integers. I’d like to set the Boolean with a button and the integers with sliders. What would be the best way to do this? Thank you.