The Operator that is used to compare two values is called Relational operator. These operators always evaluate to true or false. These operators always produce a non-zero value and in many cases 1. There are six basic relational operators in BASIC , which are given here:
Operation | Symbol | Expression | Evaluation |
Equal to ( comparison) | = | a = c | true (non-zero) |
Less than | < | b < a | false (zero) |
Less than or Equal to | <= | a <= b | true (non-zero) |
Greater than or equal to | >= | b >= a | false (zero) |
Not equal to | <> | a <> b | true |
No comments:
Post a Comment