Sections
Last updated
Was this helpful?
Last updated
Was this helpful?
Sections are very similar to functions: they contain code, they (optionally) have some input variables and (optionally) give some output. One of the key differences being that sections can be created within a trigger.
The argument variables are a list of variables that represent the input of the section. Example: with argument variables {_x}, {_y}
.
For section output, you have to use .
The last expression is a variable in which the created section will be stored.
Local variables from before the creation of a section are available in the section itself, but won't modify the local variables from outside the section.
This effect will run the given section. If you run the section (a)sync, you can choose to wait for it to be done or not, by appending and wait
or not.
You can specify arguments with this effect, for example like this: with arguments {_a}, {_b}
.
The output of the section is stored in the result part: and store result in {_result}
.
Sections are very useful to use with , since you don't have to create functions for the proxy with sections.