setting variable with buttons?

Is it possible with Arduino to use buttons to change variable settings?

For instance if I have 2 buttons, one programmed to add 1 value and one programmed to subtract 1 value from a variable. And have it store as a setting?

I guess as an example, if I create a temperature alarm that goes off at 80 degrees. But if I push an up or down button, I can change the alarm to go off at 75 degrees instead?

Also, would this be just a temporary value or can I make it semi permanent. Like if the power goes out, when it comes back on, id like it to remember the last setting.

I've tried finding tutorials on how to adjust variables digitally, but no luck. I guess I'm not sure what to look for.

I'm surprised you couldn't find how to modify a variable in code. That is literally one of the most fundamental part of programming.

Essentially your code just needs to poll the buttons continuously and, if one of the buttons has been pressed, you type something along the lines of "temperature++" or "temperature--"

j0ker31m:
Also, would this be just a temporary value or can I make it semi permanent. Like if the power goes out, when it comes back on, id like it to remember the last setting.

I guess I'm not sure what to look for.

https://www.arduino.cc/en/Reference/EEPROM

"The microcontroller on the Arduino and Genuino AVR based board has EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This library enables you to read and write those bytes. "

I think you would benefit from reading this:
http://www.gammon.com.au/forum/?id=11955

Thanks for the help and links to information. I knew I could manipulate a variable with ++ and – but wasn’t sure if it would store it as a permanent value. I didn’t quite understand eeprom.

Once again, thank you.