Hi All
When I run the following script ‘x’ returns.
(2)
(2)
(2)
(2)
(2)
but I was expecting.
(2)
(3)
(4)
(5)
(6)
set x to 1
repeat 5 times
addOne(x)
end repeat
on addOne(x)
set x to x + 1
log x
end addOne
I’m guessing that I need to return ‘x’ back to the repeat loop, but I don’t know how?
Thanks again
Shane