Jump to content

BSL:Manual: Difference between revisions

160 bytes added ,  6 December 2015
m
(→‎Data types: mentioning automatic initialization)
m (→‎Functions: wording)
Line 373: Line 373:


==Functions==
==Functions==
A function is a block of code that can be accessed repeatedly whenever you want to perform a certain task. As in mathematics, functions can be passed input and can return output, though they do not need to do either of those things in order to be useful.
A function is a block of code that can be accessed repeatedly whenever you want to perform a certain task. As in mathematics, functions can be passed input and can return output, though unlike in mathematics, they do not need to do either of those things in order to be useful, as functions can affect external data by modifying global variables and by calling built-in functions which affect the game environment.


===Built-in vs. script-defined===
===Built-in vs. script-defined===