beautypg.com

Ocean Optics Jaz Scripting Language and Scripting Engine User Manual

Page 13

background image

2: Jaz Scripting Engine Architecture

013-RD000-000-12- 201010

5

TEXT Literals

A literal of type text may need to have carriage returns inserted within them to make screen text readable.
For example, to have the string Test1Test2Test3 show up on separate lines, insert the '$' character

wherever a new line is desired. Internally, the scripting engine inserts the carriage returns as in
Test1$Test2$Test3.

Arithmetic

The scripting engine supports simple algebraic expressions including parenthesis nesting, unary minus
(negation), and +,-./,*. It does not support nested functions in expressions since scripting functions do not
return a value. This is in keeping with the BASIC language paradigm.

Assignment: MyIntegerVariable := (2 * (MyPixel[J] - BIAS/100)), where := is the
assignment operator.

Evaluation: IF(MyVariable1 = MyVariable2) GOTO RESET, where = is the boolean
comparison operator. Please note that := and = are not interchangeable.

Operators

Symbol

Name

Type

+

Addition

Arithmetic

-

Subtraction

Arithmetic

/

Division

Arithmetic

*

Multiplication

Arithmetic

()

Parenthesis nesting

Arithmetic

-()

Negation of a quantity

Arithmetic

[]

Array Element

Indexing

=

Equals

Boolean

<>

Not Equals

Boolean

>=

Greater than or equal

Boolean

<=

Less than or equal

Boolean