Both of them is valid:
fct(){
...
}
or
fct()
{
}
But the following "{" is required. Otherwise it is only a function call
Another example for that:
fctA() ; is a function call only. Please do not shown in Code Explorer
fctA(){ ; Definiton of function A: this should appear in the Code Explorer
...
} ; end of function A
fctB() ; Definition of function B: this should appear in the Code Explorer
{
...
fctA() ; but this not because it is a function call only
...
} ; end of definition for function B
function definition within another function are not valid.
So functions are never nested.
Please let me know if you need further information...
Many thanks.
--
<https://forum.pspad.com/read.php?2,71336,71995>
PSPad freeware editor https://www.pspad.com