7: Introduction to TSP commands Model DMM7510 7½ Digit Graphical Sampling Multimeter
7-16 DMM7510-901-01 Rev. B / May 2015
Operators
You can compare and manipulate Lua variables and constants using operators.
Arithmetic operators
Operator Description
multiplication
negation (for example, c =
−
Relational operators
Operator Description
not equal
Bitwise operators
Operator Description
Logical and bitwise operators
The logical operators in Lua are and, or, and not. All logical operators consider both false and
nil as false and anything else as true.
The operator not always returns false or true.
The conjunction operator and returns its first argument if the first argument is false or nil;
otherwise, and returns its second argument. The disjunction operator or returns its first argument if
this value is different from nil and false; otherwise, or returns its second argument. Both and and
or use shortcut evaluation, that is, the second operand is evaluated only if necessary.
The example output you get may vary depending on the data format settings of the instrument.