Convert list of positive and negative integers to 0 and 1

Attempting to convert a list of positive and negative integers to 0 and 1. Please no suggestions using python.


gh.gh (6.3 KB)

One way is using the largerthan or smallerthan components to test against zero - the true/false outputs can then represent 1/0

1 Like

As above, and the trick is that true is 1, and false is 0 with GRasshopper autoconversion

2 Likes

Awesome thanks!