server if statement