using multiple buttons as logical operators question

I have the following problem, in my project I am trying to use multiple buttons as logical operators, let say press button a to do something or button b to do another thing, how would i go about doing that?

It should be easy.
Read button1 pin. If it is HIGH (or LOW depending on setup) do something.
Read button2 pin. If it is HIGH (or LOW depending on setup) do something else.

Show us what you have already tried.