I have a list list that contains values of points in space that correspond to to other referenced objects. They are all flat on the X,Y plane with a Z value of 0. By moving them vertical they control the corresponding grasshopper component by the distance moved.
This yields me a list of 0.0s and values (if a point has been moved) I need to split the list in two parts with >= 0 being the the characteristic that splits the list. I have tried with gate and split list. I have also tried so VB code, but with no luck.
If x <=0 then
A=x
Else
B=x
End If
Gives me, two lists which are the same length as the original with in place of values that Were filtered by the IF statement. I need the return to be of just the values.
In other words if I have a list length of ten, nine of which are 0.0 and one that is 2.0, I need a list of nine and a list of one.
I can not use the split list by integer function because the values that needs to be split out of the list of 0.0s is not always in the same position in the list.
Any help would be greatly appreciated.
Tags: