Searches a tag list for a matching tag, and returns the corresponding ti_Data value for the TagItem found. If no match is found, this function returns the value passed in as 'default'.
INPUTS
tagValue
tag value to search for.
defaultVal
value to be returned if tagValue is not found.
tagList
the tag list to search.
RESULT
value
the ti_Data value for the first matching TagItem, or 'default' if a ti_Tag matching 'Tag' is not found.