POSITION:028,114
COLOUR:EUPHORIA
TEXT:00,test3 = value1 != 100 or value2 > 2000
COLOUR:STANDARD
TEXT:32,The first relational expression of this "or" logical expression
TEXT:16,works out to be true because 50 is not equal to 100. The second
TEXT:16,relational expression works out to be false because 25 is not larger than
TEXT:16,2000. As a result, the "or" logical expression works out to be true
TEXT:16,because at least one of the expressions was true, so variable "test3"
TEXT:16,is assigned a value of 1.
COLOUR:EUPHORIA
TEXT:32,test4 = value1 = 5 or value2 < 49
COLOUR:STANDARD
TEXT:32,Variable "value1" is certainly not equal to 5, so the first relational
TEXT:16,expression is false. Variable "value2" is not smaller than 49, so the
TEXT:16,second relational expression is also false. Because neither relational
TEXT:16,expression worked out to a true value, the "or" logical expression is
TEXT:16,false. This means "test4" is assigned a value of 0.
