Identifying a function when reading in Visual Basic
<p>I'm having trouble idetifying what this does? my confusion relates to the "end for" does this mean the function would end the 'for' loop if the value is false?</p>

<p>example data in Array can [2,4,5] Val 3, Result would be false and end the loop or? </p>

<p>Thanks in advance.</p>

<pre><code>Function YetToName (data As Integer(), val As Integer) As Boolean    
    Dim i As Integer

        For i = 0 To data.Length - 1    
            If data(i) = val Then    
                Return True    
            End If    
        End For

    Return False    
End Function
</code></pre>