2 error, Error – Metrohm tiBase 1.1 User Manual
Page 73
■■■■■■■■■■■■■■■■■■■■■■
2 General program functions
tiBase 1.1
■■■■■■■■
65
the type Text, Number or Date/Time. Entire operations can also be
transferred here.
Value_false
If condition = 0, this parameter is saved as a result of the function. This
parameter can be transferred either directly or as a variable and can be of
the type Text, Number or Date/Time. Entire operations can also be
transferred here.
Value_error
If condition = invalid, this parameter is saved as a result of the function.
This parameter can be transferred either directly or as a variable and can
be of the type Text, Number or Date/Time. Entire operations can also
be transferred here.
Examples
Case('MV.ID1' = "";"ID1 empty";"ID1 not empty") = if no entry has
been made for ID1 in the run window, the text ID1 empty, otherwise
ID1 not emptywill be saved in the result.
Case('RS.IntermediateRes' > 5.5;"Intermediate result too
high";'RS.IntermediateRes' * 26.5;"Error occurred") = If the result
"IntermediateRes" is greater than 5.5, the text "Intermediate result
too high" will be written into the result, otherwise the intermediate result
will be multiplied by 26.5. If an error occurs during the comparison
('RS.IntermediateRes' > 5.5), "Error occurred" will be saved as a
result of this operation.
2.4.4.9.2
Error
Dialog window: Formula editor
▶ Operators/Functions
Syntax
y = Error(value)
Gives +1 if the value is invalid (error) or 0 if the valie is valid. This
function can be used e.g. to check variables for their existence or validity.
Parameters
Value
The variable to be tested.
Examples
Error('RS.IntermediateRes') = 0: the intermediate result was able to be
calculated.
Error('RS.ZwischenRes') = 1: the intermediate result is invalid.