2 or, Logic or – Metrohm tiamo 2.3 Manual User Manual
Page 77
■■■■■■■■■■■■■■■■■■■■■■
2 General program functions
tiamo 2.3
■■■■■■■■
61
Examples
Oper-
and1
Oper-
and2
Result
Example
Remark
Operands of the same type:
Number
Number
Number
5 AND 4 --> 1
4 AND 0 --> 0
Numbers greater than 0 are interpreted as
1 (true).
Text
Text
Number
"Metrohm" AND "AG" --> 1
"" AND "AG" --> 0
An empty character string ("") is interpre-
ted as 0 (false), everything else as 1 (true).
The first operation therefore corresponds
to 1 AND 1 --> 1.
Time
Time
Number
Time(1999;10;07) AND
Time(1999;10;07) --> 1
Time(): see Time(Date)
Operands of a different type:
Number
Text
Number
1.2 AND "1.2" --> 1
0 AND "1" --> 1
0 AND "0" --> 1
0 AND "" --> 0
Before the operation, the operand of the
type Number is converted to the type
Text, as a conversion from Text to Num-
ber is not advisable. During the second
operation, the 0 is therefore converted to
"0", which corresponds to the logical
value 1 (true), as every character string
that is not empty is interpreted as 1.
Text
Number
Number
"Metrohm" AND 1.2 --> 1
The same rules apply here as for the previ-
ous operation.
Number
Time
Number
2.0 AND Time(1999;10;7) -->
1
0 AND Time(1999;10;07) --> 0
Before the operation, the operand of the
type Date/Time is converted to Number
and all data from December 30, 1899 are
interpreted as 1 (true).
Time
Number
Number
Time(1999;10;7) AND 2.5 -->
1
The same rules apply here as for the previ-
ous operation.
Text
Time
Number
"Metrohm" AND
Time(1999;10;7) --> 1
"" AND Time(1999;10;07) -->
0
Before execution of the operation, the
operand of the type Date/Time is conver-
ted to the type Text and every character
string that is not empty is interpreted as 1
(true).
Time
Text
Number
Time(1999;10;7) AND
"Metrohm" --> 1
The same rules apply here as for the previ-
ous operation.
2.4.4.3.2
OR
Dialog window: Formula editor
▶ Operators/Functions
Syntax
Operand1 OR Operand2