Creating point inside function failed

Hi,
can you help with such essential problem like creating point by function? I need to create organized list of points by certain formula, but it returns null each time the point is created inside function body.
example here:

Thank you Nick for quick reply.
Now I see I did mistake with parentheses, but it was because of trying to simplify the original problem with “while loop”.

Here is the original solution. I try to create function to return points representing polygon vertices on its output. The function returns only first point, which is the input parameter, but each other point created inside while loop returns null. I can´t find the reason.


So far I haven’t been able to figure out where the problem in your code is.

But if a regular polygon is what you’re after there’s already a node for that. And if you want to create a string of points at specific lengths/angles you could probably use CylindricalPoints to make things a little less involved.