Working with Functions That Return ValuesUp to this point, all the functions that you've seen simply do something and then return. Sometimes, though, you want to return a result of some kind. Script 3.7 makes the overall script more understandable by breaking out some of the calculations in previous examples into a function which returns the random numbers for the cells on the Bingo card. Another function then uses this result. Script 3.7. A function can return a value, which can then be checked.
To return a value from a function:
Tip
|