Functions
From ADRIFT 5 Manual Wiki
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.
<<< Keys | Main Page | Item functions >>> |