Jump to content

Recommended Posts

There is no quick way to search for a non-zero number using the vector tools. It is possible to search for a value within a vector which will return the location, but what you are searching for needs to be defined.

You could use the comparison function block, not equal, and when the value is a non-zero value it could perform a desired action based upon that value. This would need to be defined for each operand within the vector and would best be suited for a small vector size.

If you are working with a large vector you could use Vector Compare using Offset, which you can compare to a constant vector of length 1 which has a value of zero. Each time you compare, increment the offset. If not 0, store the value and use it to perform an action.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...