How to replace an <empty> branch with a null branch or a "0" value? - Grasshopper2024-03-28T14:17:35Zhttps://www.grasshopper3d.com/forum/topics/how-to-replace-an-empty-branch-with-a-null-branch-or-a-0-value?commentId=2985220%3AComment%3A918866&feed=yes&xn_auth=no...and with Combine Data.tag:www.grasshopper3d.com,2019-04-05:2985220:Comment:19762682019-04-05T04:37:42.626ZErick Vásquezhttps://www.grasshopper3d.com/profile/ErickVasquez
<p>...and with <strong>Combine Data</strong>.<a href="https://storage.ning.com/topology/rest/1.0/file/get/1769727018?profile=original" target="_blank" rel="noopener"><img src="https://storage.ning.com/topology/rest/1.0/file/get/1769727018?profile=RESIZE_710x" class="align-full"/></a></p>
<p>...and with <strong>Combine Data</strong>.<a href="https://storage.ning.com/topology/rest/1.0/file/get/1769727018?profile=original" target="_blank" rel="noopener"><img src="https://storage.ning.com/topology/rest/1.0/file/get/1769727018?profile=RESIZE_710x" class="align-full"/></a></p> this is amazing. thank u so m…tag:www.grasshopper3d.com,2018-11-13:2985220:Comment:19445932018-11-13T04:53:40.666ZAriel Bintanghttps://www.grasshopper3d.com/profile/ArielBintang
<p>this is amazing. thank u so mucho</p>
<p>this is amazing. thank u so mucho</p> tag:www.grasshopper3d.com,2018-04-12:2985220:Comment:19020372018-04-12T02:05:09.002ZGuido Rhttps://www.grasshopper3d.com/profile/GuidoR
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769354264?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769354264?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769354264?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2769354264?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> Actually you can just use nul…tag:www.grasshopper3d.com,2014-05-23:2985220:Comment:10767932014-05-23T15:08:10.228ZMichael Pryorhttps://www.grasshopper3d.com/profile/MikePryor
<p>Actually you can just use null item. </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891531?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891531?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p>Actually you can just use null item. </p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891531?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891531?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p> many thanks Matt
this is exa…tag:www.grasshopper3d.com,2014-05-23:2985220:Comment:10768782014-05-23T14:30:09.692ZIvan Hawkhttps://www.grasshopper3d.com/profile/IvanAppoloni
<p>many thanks Matt</p>
<p></p>
<p>this is exactly what I was looking for :)</p>
<p></p>
<p>cheers</p>
<p></p>
<p>ivan</p>
<p></p>
<p></p>
<p>many thanks Matt</p>
<p></p>
<p>this is exactly what I was looking for :)</p>
<p></p>
<p>cheers</p>
<p></p>
<p>ivan</p>
<p></p>
<p></p> Hi Ivan,
Try this Logic, The…tag:www.grasshopper3d.com,2014-05-23:2985220:Comment:10766692014-05-23T11:52:30.960ZMatt Gaydonhttps://www.grasshopper3d.com/profile/MattGaydon
<p> Hi Ivan,</p>
<p>Try this Logic, The VB code is just copied and pasted from Daniels reply Below.</p>
<p>There maybe a better way but this is what I can think of off the top of my head</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891523?profile=original" target="_self"><img width="511" height="370" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891523?profile=original"/></a></p>
<p>Hope its some Help. Matt</p>
<p> Hi Ivan,</p>
<p>Try this Logic, The VB code is just copied and pasted from Daniels reply Below.</p>
<p>There maybe a better way but this is what I can think of off the top of my head</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891523?profile=original" target="_self"><img width="511" height="370" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891523?profile=original"/></a></p>
<p>Hope its some Help. Matt</p> Hi Michael
I already tried…tag:www.grasshopper3d.com,2014-05-23:2985220:Comment:10765812014-05-23T11:35:12.717ZIvan Hawkhttps://www.grasshopper3d.com/profile/IvanAppoloni
<p>Hi Michael </p>
<p></p>
<p>I already tried the replace null component but it does not fix the problem</p>
<p></p>
<p>the problem is that null and empty are recognized differently by GH, please see Pic for further details</p>
<p><br></br><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768892108?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768892108?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p></p>
<p></p>
<p>Hope to find a way to fix it…</p>
<p>Hi Michael </p>
<p></p>
<p>I already tried the replace null component but it does not fix the problem</p>
<p></p>
<p>the problem is that null and empty are recognized differently by GH, please see Pic for further details</p>
<p><br/><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768892108?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768892108?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p></p>
<p></p>
<p>Hope to find a way to fix it<a href="http://storage.ning.com/topology/rest/1.0/file/get/2768892108?profile=original" target="_self"><br/></a></p>
<p></p>
<p>thanks </p>
<p></p>
<p>Ivan</p> Im pretty sure there is a rep…tag:www.grasshopper3d.com,2014-05-22:2985220:Comment:10763852014-05-22T22:30:28.441ZMichael Pryorhttps://www.grasshopper3d.com/profile/MikePryor
Im pretty sure there is a replace null component now.
Im pretty sure there is a replace null component now. HI David
I have a similar pr…tag:www.grasshopper3d.com,2014-05-22:2985220:Comment:10764542014-05-22T21:47:56.497ZIvan Hawkhttps://www.grasshopper3d.com/profile/IvanAppoloni
<p>HI David</p>
<p></p>
<p>I have a similar problem , I have a set of line lenghts components....whenever some of this component is empty I would like to get a "0" on the output thus to populate a list having always same nr of items + to use those 0's for further calculation</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891881?profile=original" target="_self"><img class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891881?profile=RESIZE_1024x1024" width="721"></img></a></p>
<p></p>
<p>I tried to use your definition but I am not able to convert those empty…</p>
<p>HI David</p>
<p></p>
<p>I have a similar problem , I have a set of line lenghts components....whenever some of this component is empty I would like to get a "0" on the output thus to populate a list having always same nr of items + to use those 0's for further calculation</p>
<p></p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2768891881?profile=original" target="_self"><img width="721" src="http://storage.ning.com/topology/rest/1.0/file/get/2768891881?profile=RESIZE_1024x1024" width="721" class="align-full"/></a></p>
<p></p>
<p>I tried to use your definition but I am not able to convert those empty panels in to useable numbers ( 0 ) </p>
<p></p>
<p>any advice ?</p>
<p></p>
<p>many thanks , cheers</p>
<p></p>
<p>Ivan</p> What I did is put the followi…tag:www.grasshopper3d.com,2013-12-18:2985220:Comment:9752552013-12-18T03:44:08.873ZDaniel Xionghttps://www.grasshopper3d.com/profile/DanielXiong
<p>What I did is put the following in the vb.net component. It will add "null" at empty branches</p>
<p></p>
<p>If x is Nothing Then<br/> a = nothing<br/> Else<br/> a = x<br/> End If</p>
<p>What I did is put the following in the vb.net component. It will add "null" at empty branches</p>
<p></p>
<p>If x is Nothing Then<br/> a = nothing<br/> Else<br/> a = x<br/> End If</p>