Scripts can also return a value, so that they can be used in expressions. For this end you use the return statement:
return <expression>
Execution of the script ends at the return statement!
Example
Here is the definition for a little script that computes the square
of the argument:
{
return (argument0*argument0);
}
To call a script from within a piece of code, just act the same way as when calling functions. That is, write the script name with the argument values in parentheses.
| Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |