Artin Farahani on Sat, 17 Feb 2007 20:25:03 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Embedded Braces


gp tells me that:

 ***   sorry, embedded braces (in parser) is not yet implemented.

Then, how can I have a multi-line command in a function in a script?
**** example.gp ****
func(n) = {
   for(i=1,n, {
      line1;
      line2;
      etc;
      });
}

func(5);
********************


Thank you,
Artin