Livecode Wiki
Advertisement

Functions are like messages, but they returns a value. Usually a function is used to perform complex action on a value, otherwise messages are more common and uses by programmers.

Syntax is:

function MyFunc param1
 return param1 + 1
end MyFunc

and is used this way

on MouseUp
 answer MyFunc(4)
end MouseUp

Here is a list of common of available functions:

(pleas help us to complete this list)

Advertisement