tag:support.nodebox.net,2012-11-01:/discussions/nodebox-2-3/127-how-to-detect-null-value-in-nodeboxNodeBox: Discussion 2019-10-09T21:46:57Ztag:support.nodebox.net,2012-11-01:Comment/260243642013-03-22T17:03:10Z2013-03-22T17:03:10ZHow to detect 'null' value in Nodebox?<div><p>Do you get null as an error message, or is the value empty?</p></div>Frederik De Blesertag:support.nodebox.net,2012-11-01:Comment/260243642013-03-22T17:08:10Z2013-03-22T17:08:10ZHow to detect 'null' value in Nodebox?<div><p>The value is empty. I was trying to change those items to either
0 or ' '. How do I do that? Please let me know. Thank you.</p>
<p>Cheers,<br>
Q</p>
<p>Mar 22, 2013 1:03 PM Frederik De Bleser <a href=
"mailto:tender2+dd23ce3e979262f531e6445f595520e69cae5c6e2@tenderapp.com">
tender2+dd23ce3e979262f531e6445f595520e69cae5c6e2@tenderapp.com</a>
작성:</p></div>Kyuha Shimtag:support.nodebox.net,2012-11-01:Comment/260243642013-03-22T17:17:41Z2013-03-22T17:17:41ZHow to detect 'null' value in Nodebox?<div><p>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).</p>
<p>If this approach does not work, we could consider adding a
"default value on blank" option to the import CSV node.</p></div>Frederik De Blesertag:support.nodebox.net,2012-11-01:Comment/260243642013-03-22T19:41:30Z2013-03-22T19:41:30ZHow to detect 'null' value in Nodebox?<div><p>Thank you Frederik. It works :) Is it also possible to change
strings to All Caps? Please let me know.<br>
Thank you.</p>
<p>Cheers,<br>
Q</p>
<p>Q / K y u h a S h i m</p>
<p>Research Fellow / Data Visualization Specialist | Senseable City
Lab, MIT<br>
Faculty | MFA Digital+Media, RISD</p>
<p>MIT 9-209, 77 Massachusetts Ave,<br>
Cambridge, MA 02139 USA</p>
<p>e <a href="mailto:qshim@mit.edu">qshim@mit.edu</a><a href=
"mailto:qshim@mit.edu">qshim@mit.edu</a> || <a href=
"mailto:qshim@risd.edu">qshim@risd.edu</a><a href=
"mailto:qshim@risd.edu">qshim@risd.edu</a><br>
t +1.401.924.1002<br>
w <a href="http://kyuhashim.com">http://kyuhashim.com</a></p></div>Kyuha Shimtag:support.nodebox.net,2012-11-01:Comment/260243642013-03-23T20:32:46Z2013-03-23T20:32:46ZHow to detect 'null' value in Nodebox?<div><p>You can write your own python code to do that and then make your
own node e.g.:<br></p>
<pre>
<code>def capitalize(str):
s= str.upper()
return s</code>
</pre>
See how to make your own nodes: <a href=
"http://nodebox.net/node/documentation/advanced/programming-nodes.html">
here</a></div>lucasnijstag:support.nodebox.net,2012-11-01:Comment/260243642013-03-26T11:24:16Z2013-03-26T11:24:58ZHow to detect 'null' value in Nodebox?<div><p>We should probably add a "change case" node that can switch
between upper-, lower- and title case.</p>
<p>I've created a <a href=
"https://github.com/nodebox/nodebox/issues/328">GitHub Issue</a>
that tracks this.</p></div>Frederik De Bleser