by Dinesh Thakur Category: Variables and Constants

Relational operators: Relational operators are used for comparison of to variables of same data type. These operators are used in the conditions where two values are compared and true or false is returned according to test result.

Example: 3 > 5 returns you false and 3 < 5 returns you true, which can be used in if statement.


Logical operators: Logical operators are used write a compound condition. You can use compound conditions to test more than one condition. Create compound condition by joining two conditions with Logical Operators. The Logical Operators are Or, And and Not.




If optMale.Value = True And Val(txtAge.Text) < 21 Then

minMinorMaleCount = minMinorMaleCount + 1

End If

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.