I want to check if a value exists in an array. And if so, take action.
I do that with the following code. But I don't think this is an elegant way of doing so :
For Each k In projects()
If k = "var" then
'marker for value in array
l = 1
Else
End If
Next k
If l = 1 Then
**** do something *****
End If
anyone ?
I do that with the following code. But I don't think this is an elegant way of doing so :
For Each k In projects()
If k = "var" then
'marker for value in array
l = 1
Else
End If
Next k
If l = 1 Then
**** do something *****
End If
anyone ?