If/Else not working properly

I just want to check if you have the gains set right