7.9.1.5. Function RecursionΒΆ

Recursive GEL function calls are permitted.

Just like any recursive routine, just be aware that an invalid condition that makes the code run forever will be faced with a very long delay in processing.

___

Example:

RecursiveTest(num)
{
   int i = num;
   do
   {
      GEL_TextOut("@%d ", "Test Output", 0, 0, 0, i);
      i++;
   }
   while (i <= 5);
   GEL_TextOut("\n", "Test Output");
   if (num < 5)
   RecursiveTest(num+1);
}

___

See also:

GEL Functions: Alphabetical List