If you want to find the sum of a list, just do this:
set [sum] to (0)
set [i] to (0)
repeat (length of [list]) times
{
change [i] by (1)
change [sum] by (item (i) of [list])
}
Offline
Perhaps I misunderstood what you wanted. Do you want script that adds up all the items in a list? That is stored in "sum" after this script runs.
<set{ i }to( 0 )>
<set{ sum }to( 0 )>
<repeat( length of [list] )>
<change{ i }by( 5 )>
<change{ sum }by( item (i) of [list] )>
<end>
Offline
There is an "item (1) of [list]" block under variables. I'm changing the variable "sum" by "item (i) of [list]". Just drag the "item (1) of [list]" into the oval part of "change [sum] by()", and drag (i) into the oval part of item (1) of [list]
Offline