Muliple if statement

Which is why the OP should post the whole sketch, rather than us all speculating on what they meant.