Site pages
Current course
Participants
General
Topic 1
Topic 2
Topic 3
Topic 4
Topic 5
Topic 6
Topic 7
Topic 8
Topic 9
Topic 10
Topic 11
Topic 12
Topic 13
Topic 14
Topic 15
Topic 16
Topic 17
Topic 18
Topic 19
Topic 20
Topic 21
Topic 22
Topic 23
Topic 24
Topic 25
Topic 26
Topic 27
Topic 28
Topic 29
Topic 30
Topic 31
Topic 32
Topic 33
Topic 34
Topic 35
Relational and Logical Expressions
Relational expressions BASIC allows the construction and use of relational expressions and are formed by using the relational operators. These operators are Relational expressions are constructed by combining two arithmetic expressions with relational operators. The general form is Where indicates a relational operator. Eg; A=2, B=3 A = B , A > B A < B False False True Relational expression are commonly used to test conditions in IF–THEN ELSE statements. Logical Expressions Logical expressions are designed using logical operators and relational expressions. commonly used logical operators are NOT, AND, OR, XOR, EQV. The following tables explain their action. Such tables are called truth tables. NOT Table XOR table EQV table Logical expressions may be used in the IF –THEN & IF –THEN –ELSE statements as test conditions like relational expressions. The order of evaluation of the operators is as follows |
Last modified: Wednesday, 18 January 2012, 11:24 PM