Local Functions
Verfasst: 22 Aug 2018, 14:11
https://download.uib.de/opsi4.1/documen ... lfunctions
Uhm, the catch is that you can not put those local functions just anywhere in the [actions] part of the script. You have to define the function first, then you can use it. Of course, this seems logical after a while, it is a script that is parsed.
However, wouldn't it be a better idea to have a place where you can just dump the local functions? [functions] perhaps?
Or would it be better to not include local functions at all, in most cases, and just load a common library on the client with functions?
Uhm, the catch is that you can not put those local functions just anywhere in the [actions] part of the script. You have to define the function first, then you can use it. Of course, this seems logical after a while, it is a script that is parsed.
However, wouldn't it be a better idea to have a place where you can just dump the local functions? [functions] perhaps?
Or would it be better to not include local functions at all, in most cases, and just load a common library on the client with functions?