
Originally Posted by
[b
Quote[/b] ]I'm more a fan of "gosub" (from days way past ***

) ***I know that can be done by calling another script, ***I just like looking at 1 page of code vs having several different scripts open to
follow.
Same here. As a solution, you can simply define private functions within a script, much like you would in C:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>
Code Sample </td></tr><tr><td id="CODE">// code
private"_myfunc";
_myfunc=
{
*** private["_a","_b"];
*** _a=_this select 0;
*** _b=_this select 1;
*** _a+_b
};
// more code
_sum = [1,2]call _myFunc;