In your first example, var = 1 is correct, since it is the second value in the list. As for the second example, I've got to assume that var = 0 since "$5C" is not in the list and var is already 0? The manual says if the search value is not found, then var is unchanged. Have you tried setting var to a known value then run through the second example and see if it changes? Just an idea. Good luck!