I want to check every string in indexpage string witf If. This is indexpage
Dim indexpage As String = "string1" Or "string2"
I've tryed parentheses, OrElse but it didn't worked.. And It's not a problem about If function. It still gives me this error when I try it without If function...
The Error:
An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "string1" to type 'Boolean' is not valid.
indexpageto contain after such an assignment?indexpageis already equal to either one of those strings?