How to check if string contains substring1 or substring2 in VB.NET

1 Answer

0 votes
Imports System
				
Public Module Module1
	Public Sub Main()
		Dim s As String = "vb c# java php"

		If s.Contains("python") OrElse s.Contains("vb") Then
			Console.Write("yes")
		Else
			Console.Write("no")
		End if
	End Sub
End Module



' run:
'
' yes
'

 



answered Jan 11, 2020 by avibootz
...