The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.
Picked up Nodebox again after a 2 year intermezzo. Been working my way through the tutorials (which is going well).
But, please, help me out with this:
How am I able to count every unique value within a list?
I have two lists. They both consist out of years (see attachment). I'm trying to connect the values of both lists through a line. It can only work when I'm able to count the unique values, I think.
Thanks in advance!
Mark
FB
FBFrederik De BleserNodeBox team
You could try a distinct node, which filters out all double values, and
then add a count node afterwards.
F
On Thu, Jan 30, 2014, at 16:18, Mark wrote:
MA
MAmark
Hi Frederik,
Sorry, I guess I have to refrase myself.
I want to count the amount of appearances of one value inside a list. The amount of appearances of every - what I called - "unique" value.
Is it possible?
Thanx again.
Mark
FB
FBFrederik De BleserNodeBox team
The easiest way to do this is using a custom node, which I've attached here, that counts the distinct elements.