I wouldn’t say better, but the first one has one command less. As far for repeat loops, there is no performance difference in going up or down in iteration. So adding the set command at the end of the second example should be marginally slower, but I doubt if it’s even measurable.