When you write a handler for a function, you specify statements that compute and return a value to the handler that calls the function. Each function handler has the following form, where the italicized words are placeholders: 

<pre><code>function <i>functionName</i>
    <i>statements</i>
end <i>functionName</i>
</code></pre>

HyperCard has many built-in functions, but you can also write your own:

<pre><code>on mouseUp
   put square(5) into the Message box
end mouseUp
function square x
   return (x * x)
end square
</code></pre>

 The function<code> square </code>receives a number through its parameter variable,<code> x</code>.  It then returns the value of<code>  x * x </code>to the handler that called it (<code>mouseUp</code>) using the<code> return </code>keyword.