Forum Discussion

Mikki's avatar
Mikki
New Contributor III
3 months ago

How to search for member in list of members

Hi, I have a requirement where I need to compare a member in list of members (listOfmem) and see if the member exists in list. How to best handle this as it seems like I can't use "Contains" functi...
  • KarlT's avatar
    3 months ago

    You can try this this approach where the listofmem is defined per your question:

    If listOfmem.Any(Function(x) x.Member.Name = "MemberName") Then
    	brapi.ErrorLog.LogMessage(si,"found")
    End If