I am trying to adjust the start and end points of a Manipulate function using variables that only change value if a certain condition is met. What is wrong with the code below?
ClearAll["Global`*"];
Manipulate[
If[True, xinit = 3; xMax = 5;
, xinit=1; xMax=4;];
x,
{{x, xinit}, 1, xMax, 1}
]
xMax = 5
$\endgroup$