Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Glish provides three basic unary operators: +, -, and !. The first simply yields the value of its operand; the second, its arithmetic negation; and the third, its logical negation. All require numeric operands and yield a numeric or boolean (for ``!") result, and all work on vectors as well as scalars.
In addition to these basic operators, all of the regular expression
operators are also available: ~
, =~
, !~
. These
operators are used to apply regular expressions to strings, and they
can be used as either binary or unary operators.
(See § 3.2.3, page for a description of + and -, § 3.2.4, page for a description of !, and § 4.9, page for a description of the regular expression operators.)