2 switches write the data onto one variable instead of creating another variable. Why?



  • Howdy!
    I have a problem with a project that I want to create. I want to print the value of the two switches onto the serial monitor, but the problem is that the switch value is writing it to only 1 variable. Is there a way to create another variable, so I can print the data of the both switches?

    Example picture:
    0_1683289419390_9a4343e7-cc86-4321-871b-95bc270e01a9-image.png
    If you can help, or you don't understand, ask me. I'm not good at English because I'm from other country. 😉