I would like to delete a value within a list if the user clicks on a component. However, I only find the block which allows for deletion based on index, not value. Is there a way to delete a value within a list based on searching for a string?
E.g. within the list “Interests”, there are “Sports”, “Music”, “Reading”. I do not know at which index those elements will be located. Hence, I need to search based on the string, not index.
All the values are unique, but what I am asking is how do I remove the unique value if I do not know the index? The # implies that I know the index of the value I want to delete, right? The issue is that I do not know the index, but rather just the value.