The Visual Basic .NET compiler seems to ignore the reserved word
Then , which is at the end of the
If (1 + 1 = 2) Then Console.WriteLine("Passou no teste.") End If
And now, without
If (1 + 1 = 2) Console.WriteLine("Também passou no teste.") End If
This was the result in the Console:
Passou no teste.
Também passou no teste.
Is Keyword Then really needed in Visual Basic .NET? Does it have a special function or is it some kind of "Improve reading code"?