ID:1001123
 
(See the best response by Pirion.)
When using list.Find(), how do I receive what it returns? I'm having trouble using the info that it finds from a list.
var/x=list.Find(y)


It'll return the first position of whatever you're looking for. Otherwise it'll return zero.
Best response
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")

mob/verb/find_item()
var/index = items.Find("pen")
if(index == 0)
src << "Could not find the item."
else
src << "Item is index [index], [items[index]]."
Yeah it works now. Thanks guys, appreciate it.