Please, check this for the syntax of the if statement in Visual Basic: https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/if-then-else-statement