Try using an else-if for if (item_weight < 50). This will make it so if (item_weight < 50) only gets evaluated if (item_weight < 30) is false.