garf Posted January 3, 2019 Share Posted January 3, 2019 I have two sets of points and I want to compare them by id. If there are matching ids then I want to delete the matched from one of the sets. Any pointers appreciated. Cheers Quote Link to comment Share on other sites More sharing options...
garf Posted January 3, 2019 Author Share Posted January 3, 2019 Figured it out! Plug one stream into the first port and one into the second of a wrangle: int match_pt = findattribval(1, "point", "id", @id); removepoint(0, match_pt); 1 Quote Link to comment Share on other sites More sharing options...
3dome Posted January 3, 2019 Share Posted January 3, 2019 alternative code if(idtopoint(1, i@id) != -1) removepoint(0, @ptnum); 2 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.