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.

NodeBox 3From the old forum

How to detect 'null' value in Nodebox?

6 replies Last reply

  1. Hello,
    I imported data using import_csv and I am trying to catch null value. Is there any node supporting that?
    Please let me know. Thank you.

    Copy link
  2. NodeBox team

    Do you get null as an error message, or is the value empty?

    Copy link
  3. NodeBox team

    You could try using a "replace" node: connect a lookup node to import CSV and use a replace node to replace the empty string with "0". Afterwards, you might want to try converting everything to numbers again (using a number or integer node).

    If this approach does not work, we could consider adding a "default value on blank" option to the import CSV node.

    Copy link
  4. You can write your own python code to do that and then make your own node e.g.:
    @@@
    def capitalize(str):
    s= str.upper()
    return s
    @@@
    See how to make your own nodes: here

    Copy link
  5. NodeBox team

    We should probably add a "change case" node that can switch between upper-, lower- and title case.

    I've created a GitHub Issue that tracks this.

    Copy link

Know something that helps?

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

Sign in to reply