All.
I guess I am just not understanding.
Not the first time.
In "repeat for each...", the variable instance can be modified as often as desired. It lives apart from the loop construct. What is it that cannot be changed? What is it in the construction that "should" be "read only"
@Jacque. It sounded to me like your post referred to "repeat with..." where the index (I think) used to be sacrosanct. But now one can:
Code: Select all
on mouseUp
repeat with y = 1 to 10
put y into line y of temp
if y = 5 then add 3 to y
end repeat
answer temp
end mouseUp
I do not think this would work in HC, but am not sure.
But in any case, I am missing the point. What "should not" be modified in "repeat with..."?
Craig