mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Improved documentation of functions and default arguments a bit
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@985 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -6,6 +6,8 @@ The [[script:index|scripting language]] allows you to define custom functions.
|
||||
--Syntax--
|
||||
A piece of code enclosed in curly braces defines a function.
|
||||
|
||||
A function can be called using parentheses, for example @function(argument:value)@.
|
||||
|
||||
--Composition--
|
||||
Functions can be composed using the @+@ operator, evaluating @a + b@ first evaluates @a@ and uses its result as @input@ for @b@:
|
||||
> example := to_upper + { "result == {input}" }
|
||||
|
||||
Reference in New Issue
Block a user