How can i do a recursive algorithm in the IS?

Hi everybody,

I need of your wisdom, i need to do a recursive algorithm in a flow service or in a java services. How can i do that, for example how can i do the factorial recursive algorithm?

factorial ( X )
if (x > -1 && x < 2)
return 1
else if (x < 0)
return 0;
return x * factorial(x - 1);

thx for you help.

hehehe, i found my mistake for do a recursive factorial, was just

I FORGET DROP VARIABLES in output, i just drop all the variables that i don’t need, i just keep the input and output variables and the recursion works =D. (9.5 KB) (3.84 KB)