4 relational operators, 1 equal to, Equal to – Metrohm tiamo 2.3 Patch 1 User Manual
Page 82
2.4 Formula editor
■■■■■■■■■■■■■■■■■■■■■■
66
■■■■■■■■
tiamo 2.3 Patch 1
Operand1
Operand2
Result
Example
Remark
Text
Time
Number
"Metrohm" OR
Time(1999;10;7) --> 1
Before execution of the operation, the
operand of the type Date/Time is con-
verted to the type Text and every char-
acter string that is not empty is interpre-
ted as 1 (true).
Time
Text
Number
Time(1999;10;7) OR
"Metrohm" --> 1
The same rules apply here as for the pre-
vious operation.
2.4.4.4
Relational operators
2.4.4.4.1
Equal to
Dialog window: Formula editor
▶ Operators/Functions
Syntax
Operand1 = Operand2
The operands can be entered either directly or as a variable and can be of
the type Text, Number or Date/Time. The result type is always a num-
ber (1 = true, 0 = false).
Examples
Oper-
and1
Oper-
and2
Result
Example
Remark
Operands of the same type:
Number
Number
Number
5 = 5 --> 1
4 = 5 --> 0
-
Text
Text
Number
"Metrohm" = "AG" --> 0
"aG" = "AG" --> 0
When making a comparison between two
texts the ASCII value of the character
sequence is compared (see Chapter
2.4.4.10, page 90). Attention: Uppercase
and lowercase letters have different values!
Time
Time
Number
Time(1998;04;06) =
Time(1964;02;03) --> 0
(see Chapter 2.4.4.6.2, page 78)
Operands of a different type:
Number
Text
Number
1.2 = "1.2" --> 11.2 =
"Metrohm" --> 0
Before the relational operation, the Number
is converted to Text, afterwards the texts
are compared according to ASCII value (see
Chapter 2.4.4.10, page 90).
Text
Number
Number
"Metrohm" = 1.2 --> 0
The same rules apply here as for the previous
operation.