How can I find the IDs of all parts of a given type in Vizzy? My idea was to iterate over all parts and check the part type to see if it matches what I want. However, it seems that the "=" operator can only be used on numbers, so I can't compare the part type with what I'm looking for.

In doing this, I also notice that the part IDs don't seem to be consecutive. So when looping from the min part number to the max part number, many of the values are not actually valid part IDs, is that correct? How can I find just the valid part IDs?

Tags
Question

2 Comments

  • Log in to leave a comment
  • Profile image
    10.9k Insanity

    @Hazardist nope you'll have to check both ways with contains

    6 months ago
  • Profile image

    To follow up, I found the "contains()" call that checks if a string is a substring of another string. I can use this, but I'd still like to know, is there a way to just check if two strings are equal?

    7 months ago

No Upvotes

Log in in to upvote this post.