EasyManuals Logo

Keithley 2601B Reference Manual

Keithley 2601B
864 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #295 background imageLoading...
Page #295 background image
Section
6: Instrument programming Series 2600B System SourceMeter® Instrument
Reference Manual
6-18 2600BS-901-01 Rev. B / May 2013
Arithmetic operators
Operator Description
+
addition
−
subtraction
*
multiplication
/
division
-
negation (for example, c =
−
a)
^
exponentiation
Relational operators
Operator Description
<
less than
>
greater than
<=
less than or equal
>=
greater than or equal
~=
not equal
==
equal
Logical 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.
Example
print(10 or errorqueue.next())
print(nil or "a")
print(nil and 10)
print(false and errorqueue.next())
print(false and nil)
print(false or nil)
print(10 and 20)
1.00000e+01
a
nil
false
false
nil
2.00000e+01
String concatenation
String operators
Operator Description
..
Concatenates two strings. If either argument is a number, it is coerced to a string (in
a reasonable format) before concatenation.

Table of Contents

Other manuals for Keithley 2601B

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keithley 2601B and is the answer not in the manual?

Keithley 2601B Specifications

General IconGeneral
BrandKeithley
Model2601B
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals