Recursion in CSharp

Dear David/fellow bit smithers!

I'm trying to implement recursion in a CS component but can't make it work. The errors on the output window make reference to lines I don't have access to.

Something else that happens is that if I move a slider the errors get cleared and even if I open and close the editor again, the errors disappear until I unload GH, load it again and open my file is this normal behaviour or is it something broken?

I really appreciate any help on the attached!

Cheers

Evert

PS forget the maths, they are still wrong!

 

 

  • up

    Emilio Morello

    Hi Evert,

    I think the closed brace in line 162 should not be there.

    Deleting it, GH finds a couple of regular syntax errors,

    that I believe you can quickly fix.

    HTH, cheers

    Emilio

     

    2