Anyone here have experience with slack bots?

I am trying to build a slack bot with their events api and I am able to get the bot connected to my workspace, however I cannot get else if statements to work. I get thrown a invalid syntax error

Anyone have experience with this? I can’t seem to get around it.