if (qChanged == "+") { console.log("Quantity Incremented"); return; //use return to break the loop } else if (qChanged == "-"); { console.log("Quantity Decremented"); }