||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
Value returned: number equal to the arithmetic average of the comma- separated list of numbers
repeat with N = 1 the number of lines of field "Number Data"
put line N of field "Number Data" into item N of theNumbers
repeat with numLine = 1 to the number of lines of me
put the number of words of line numLine of me into¬
item numLine of wordsInEachLine
put "There are an average of" && average(wordsInEachLine) && ¬
"words in each line of this field." into sayIt
A comma-separated list of numbers.
In AppleScript, the list must be enclosed in brackets:
« atan | HyperTalk Reference
| charToNum »