Thursday, December 11, 2008

OPERATORS

1. Conditional Operators
The conditional operators are powerful tool that resemble mathematical operators that let the VB2008 program compare data values and then decide what actions to take, whether to execute a program or terminate the program and etc. They are also known as numerical comparison operators. Normally they are used to compared two values to see whether they are equal or one value is greater or less than the other value. The comparison will return true or false result.


2. Logical Operators
Sometimes we might need to make more than one comparisons before a decision can be made and an action taken. In this case, using numerical comparison operators alone is not sufficient, we need to use additional operators, and they are the logical operators.


*) Normally the above operators are use to compare numerical data. However, you can also compare strings with the above operators. In making strings comparison, there are certain rules to follows: Upper case letters are less than lowercase letters, "A"<"B"<"C"<"D".......<"Z" and number are less than letters.

No comments:

Post a Comment