My conditions are not working