( )
| Syntax |
identifier (expression1, ..., expressionN)
|
| Action |
Invokes the script named by identifier, passing the values resulting from expression1 through expressionN as parameters. The number of parameter provided must match the number expected by the script, as defined in its on statement script header. The value returned by the script becomes the value of the script call expression.
|
| Examples |
clock.now () » 11/11/91; 7:51 PM
Here we're calling the built-in verb clock.now; the result of the call is the value returned by the verb. Note that the parenthesis notation must be used to indicate that we are making a call to the verb, even though it takes no parameters.
total = addThree (1, 2, 3)
This example illustrates the correspondence between the parameter list provided when calling a script and the parameter declaration in the script's defining on statement. |
| Notes |
Forgetting to provide an empty pair of parentheses when no parameters are required is a common scripting error - watch for it.
|
| See Also |
on
|