Nematron Pointe Controller User Manual

Page 141

Advertising
background image

Pointe Controller User Guide

Chapter 5: Developing Controller Programs

139

Expression Syntax

In many instances, expressions can replace a single value or tag reference. Enter
expressions as free form text; they may be arithmetic or logical in nature.

All expressions produce a numeric result—either the actual result of the
arithmetic calculation, or the true/false result of a logical expression, where true
is 1 and false is 0.

An expression can include constants, tags, and functions and follows the syntax:

expression operator expression

The following table summarizes the available operators, listed in order of
precedence.

EXPRESSION TYPE

OPERATORS

unary

-a (negation)

multiplicative

a * b (multiplication)

a / b (division)

a MOD b (modulus)

additive

a + b (addition)

a - b (subtraction)

Advertising