User Manual
command C equivalent description
BITWISE_NOT ~ inverts all of the bits in its argument
LOGICAL_NOT ! replaces true by false, false by true
NEGATE – replaces x by -x
POSITIVE none true if and only if the argument is greater than zero
NEGATIVE none true if and only if the argument is less than zero
NONZERO none true (1) if and only if the argument is true (non-zero)
Mathematical commands (binary)
These commands take two arguments from the top of the stack, then return a single value as a result.
The order of the arguments, when important, is the standard one in mathematics; for example, to
compute 1 – 2, you write “1 2 MINUS”. These commands all have equivalents in C (and most other
languages), listed in the “C equivalent” column below.
Pololu Maestro Servo Controller User’s Guide © 2001–2019 Pololu Corporation
6. The Maestro Scripting Language Page 75 of 102










