an error i cant seem to get past

Hi.
It’s hard to say, but I would make sure that the alignment is consistent. On the second and third “else if”, it seems they are not aligned in the same way the first and last ones are. Also, if you hit CTRL + F, I might search for a “tab” and see if you have a tab indentation somewhere in there. Sometimes that can throw things off. If that doesn’t work, just try backspacing around and re-entering the code, being sure not to use any tabs and only indenting by using four spaces.

Try writing block: in the OnSwitch4TurnedOn method or placing {} after the equals because that function is currently incomplete