Difference between revisions of "Functions"
From ADRIFT 5 Manual Wiki
(New page - old functions page is now "General Functions") |
(user functions) |
||
Line 8: | Line 8: | ||
: These are distinguished from normal text by placing the percent (%) symbol before and after them. They sometimes have parameters which are enclosed in [square brackets]. | : These are distinguished from normal text by placing the percent (%) symbol before and after them. They sometimes have parameters which are enclosed in [square brackets]. | ||
* [[Expressions|Expression Functions]] | * [[Expressions|Expression Functions]] | ||
− | : These are a special set of functions that can only be used within Expressions. Most of these are either math functions or functions used to change a string of text. | + | : These are a special set of functions that can only be used within [[Expressions]]. Most of these are either math functions or functions used to change a string of text. |
+ | * [[User functions]] | ||
+ | : These are functions which you create yourself using a task. References used in the task become parameters in the function call, and its completion message or restriction text is returned as the result of the function. | ||
Revision as of 09:24, 23 June 2013
A function is a procedure that can be called, which returns a value. Functions can optionally take parameters.
There are three types of functions in ADRIFT. These are:
- Every item in ADRIFT can be referred to by it's key. If you type a key (or a function that resolves to a key) then you can access all the properties of that item, in addition to special functions such as listing and counting etc.
- These are distinguished from normal text by placing the percent (%) symbol before and after them. They sometimes have parameters which are enclosed in [square brackets].
- These are a special set of functions that can only be used within Expressions. Most of these are either math functions or functions used to change a string of text.
- These are functions which you create yourself using a task. References used in the task become parameters in the function call, and its completion message or restriction text is returned as the result of the function.
<<< Windows Executables | Main Page | Keys >>> |