When using list.Find(), how do I receive what it returns? I'm having trouble using the info that it finds from a list.
|
It returns the index or 0 if not found.
You can use this in the list[index] syntax to get that list item. Example: var/list/items = list("pen","pencil","jabberwooky") |
var/x=list.Find(y)
It'll return the first position of whatever you're looking for. Otherwise it'll return zero.