Multiple 'If'-statements in one program?

Hi everybody,

This is the first time I post over here! I am making a MIDI-interface for guitar. For this I want to combine a code that I found on the internet (Frequency Analysation, this works perfect!) and MIDI (I made a code where the Arduino generates MIDI-signals and connected this to Ableton Live, this works as well!).

The problem now is that I want to combine those codes. But I have one question, maybe a stupid one, but I couldn't find the answer by searching on the internet. Is it possible to use more than one 'if'-statement in the 'void loop ()'? I don't want to use 'else if' or 'else'. Just 2 or 3 times 'if.

I hope some of you guys can help me out!

Best Regards,

RobinC

You can use multiple if statements. They can be separate and/or nested (if within if)

You may be wishing to look at the "switch" statement.

Thank you for the help everybody! :smiley: and also thank you to the person who moved my question to the right forum! As I said, this is all new for me so I still have to learn a lot! I will look for the 'switch' command you mentioned! :smiley: