<code><pre>
function <i>functionName</i> [<i>parameterList</i>]
  <i>statements</i> 
end <i>functionName</i>
</pre></code>

The<code> function </code>keyword defines a new function handler of the specified name.  You call a function by placing parentheses after its name, enclosing any parameters within the parentheses: 

 <code>get deleteSpaces(" hello ")</code> 

 The optional<code> <i>parameterList</i> </code>lets a function handler receive values sent along with the function call.

When a function is called, HyperCard evaluates each item within the parenthetical list following the function's name.  When the handler begins to execute, HyperCard assigns each value to a parameter variable  in the<code> <i>parameterList</i></code>. 

 Use the<code> return </code>keyword within the function definition to have the function return a value to the handler that called it. If you don't use<code> return</code>, the function evaluates to<code> empty</code>.