I have a large notebook with multiple sections. I would like to run the entire notebook with one variable change kquads. At the end of the notebook, I added one loop
Do[(Clear @@ DeleteCases[Names@"`*", "kquad" | "i"];
kquad = 3.190597 + 3.190597 0.01 i; Print[kquad];
NotebookEvaluate@EvaluationNotebook[]), {i, -2, 2, 1}]
However, this loop looks i always equals to -2. Probably, the selfevaluation also initial this command as well, set i =-2... How could I make i equals to -2,-1,0,1,2?