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.

Show your WorkFrom the old forum

Concat_List

No replies yet

  1. Attached is a very simple custom node that fills a gap in NodeBox: concat_list

    NodeBox has a way of turning a string into a list of substrings (the make_string node), but no way to do the reverse. You can concatenate up to seven individual substrings, but you can't concatenate an arbitrary list of substrings. This is something I need to do on a regular basis.

    concat_list takes a list of strings with an optional delimiter (e.g. a comma or a space) and returns a single string. This custom node requires that concat_list.py be added to the code library of your network.

    The example turns the first sentence of the Gettysburg Address into a list of words, sorts them, concatenates them, and displays them.

    Frederick, if you are listening, this seems like it should be a built-in node.

    Enjoy!

    John

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply