ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

21-Conditional Operators

What is conditional operators? Conditional Operators  refine the statement you’re testing for. For instance,  you can specify  the statement whether it’s greater than, less than, and a whole lot more.

 

The following are the list of Operators:

  • >
  • <
  • =
  • <=
  • =>
  •  <>

 

Example:

  1. Dim x As integer = 4
  2. Dim y As integer = 10
  3. If x = y Then
  4. msgBox (x &amp; " is equal to " &amp; y)
  5. else
  6. <pre>msgBox (x &amp; " is not equal to " &amp; y)
  7. End If
Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!