Recursive Functions Using Blocks

Thank you for posting a guide on your first post! Welcome to the forums too :3

1 Like

no cussing :))))))))))))

CS stands for computer science…, and you said “this is bear”, making me assume that its a person

1 Like

Yeah, exactly.
Also it’s confirmed that you’re not bear so yeah let’s go back to talking about recursion

1 Like

even though there aren’t any real arguments, you can still define the arguments in a property before the broadcast line, and use that property in the block as a variable

Yes, but then there would be a limit to the amount of times you could call the function at once, and variables don’t save between runtimes.

wdym variables don’t save between runtimes?

If you trigger a block once and trigger it another time, all variables’ data will be lost.

I just tested it and it works fine. Also, by variable, I mean a variable stored in a property

Yeah, those work. But the built in variables in the variables tab of blocks don’t save between runs.

1 Like

yeah, i know that. I meant storing it in a property in the above text

Yeah I see what you mean now. Just to clarify though, we generally use property to refer to variables that save between runs, and variable for the variables that don’t save.

1 Like

Bump this absolutely AMAZING guide!
Btw Blackhole927 i fixed the little pickle i got myself in:)

2 Likes