Hey,
The "In" function is nice for checking for a specific element in an array - but how can I get the position number of an element in an array?
Example;
["Cake", "Coffee", "Bread", "Milk"]
Lets say I want the position number for "Bread". I know I can use
"Bread" in ["Cake", "Coffee", "Bread", "Milk"] to find out that it exists...
What would be nice is if "in" returned the position if it existed, instead
of a boolean result.
Anyone?
ZNorQ