return
| Syntax |
return (expression)
|
| Action |
Evaluates expression and exits the current script, with the result of expression being the value of the call that invoked it.
|
| Examples |
on exponentiate (n, power) local (i, exp = 1) for i = 1 to power exp = exp * n return (exp)
result = exponentiate (10, 3) |
| Notes |
The parentheses around the expression being returned are not required, but we recommend their use for improved readability. This is a matter of scripting style and has no effect on the statement's execution.
|
| See Also |
on
|