Multiple if...else statements in LED dimmer code

Before copying the code you can do a CTRL-T in the IDE to beautify your code, looks better :slight_smile:

(yes this only works if the pairs {} [] () match