Usage of OrElse


Or Else evaluates to true if either of two expressions are true.

Usage of OrElse



Module Module1

Sub Main()

Dim a As Integer = 10
Dim b As Integer = 80
Dim c As Integer = 699
Dim mycheck As Boolean

mycheck = a > b OrElse b > c
Console.WriteLine(mycheck)

)

mycheck = b > a OrElse b > c
Console.WriteLine(mycheck)

)

mycheck = b > a OrElse c > b
Console.WriteLine(mycheck)



End Sub

End Module


Explanation:
The above code snippet demonstrates the usage of Or Else .It evaluates to true if either of two expressions are true.

Output
False
True
True
Press any key to continue . . .


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: