## sum
Value returned: the sum of a comma- delimited list of items evaluates to a comma-delimited list of items, including any container holding such a list. `numberList ` ## Examples
## Demo Script
## PlaceholdersnumberListA comma-separated list of numbers.
In AppleScript, the list must be enclosed in brackets: |

Version 0.7b1 (March 24, 2022)

HyperTalk Reference

**Note**: This is a work in progress and will be formatting errors. Read more about the project on the home page.

sum(*numberList*)

Value returned: the sum of a comma- delimited list of items `numberList `

put sum(field 5) into total
if sum(firstList) > sum(secondList) then answer "Imbalance Found"

on mouseUp
answer "1 + 2 + 3 + 4 + 5 + 6 + 7 =" && **sum**(1,2,3,four,5,6,7)
end mouseUp

A comma-separated list of numbers.

1,2,3,4,5
"1.2,2.2,3.2"

In AppleScript, the list must be enclosed in brackets:{1,2,3,4,5}

Version 0.7b1 (March 24, 2022)