title: Function return true
body: <p>I'm trying to make a function that search for process passed in parameter and if exists return true yet it always returns false</p>
  
  <pre><code>Public Function ps_running(ByVal name As String) As Boolean 
      For Each Proc As Process In Process.GetProcesses
          If Proc.ProcessName.StartsWith(name) AndAlso (name.Length &lt;&gt; 0)  Then
              Return True
          End If
      Next
      Return False
  End Function
  </code></pre>
  
  <p>Am sure it's something basic i'm missing but i can't tell what 
  Thanks      </p>