Home THE HYPERCARD CENTER Search

Help Extras

Home » Help Extras » Helpful Tips » Two ways to call functions

Two ways to call functions

You can call HyperTalk functions that require one or no parameter using either of the following forms:

the abs of -5

abs(-5)

Note: You cannot use the parentheses form to call the result or the target.

The second form is less ambiguous than the first because it explicitly groups the parameters. Note the differences among the following:

the abs of -5 + 100 = 105
the abs of (-5 + 100) = 95
abs(-5) + 100 = 105
abs(-5 + 100) = 95

Important: You can use only the form the abs of -5 with HyperCard’s built-in functions. Function handlers that you define must be called using parentheses:

get myPassword()
put myRandomNumber(10)

« Turn off Shared Hilite | Helpful Tips | Use the arrow keys for editing »


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Sitemap | Switch to Modern View