beautypg.com

Do … done duplicate exp, Do … done, Duplicate – Ocean Optics Jaz Scripting Language and Scripting Engine User Manual

Page 31

background image

6: Functions Reference

013-RD000-000-12- 201010

23

Do … Done

Syntax: Do V SV,EV,SS Done
Example:

Do I 1,10,1
Sum := Sum + I
Done
This is the basic loop iteration structure where the loop body is delimited by the keywords DO and
DONE.

Arguments

Name

Type

Purpose

V

integer

Iteration variable

SV

constant

initial value of iteration variable

EV

constant

value of variable to terminate loop

SS

constant

increment V by other than 1

Duplicate

Syntax: Duplicate(A,B)
Arguments

Name

Type

Special Considerations

A

Spectral

B

Spectral

B = A

EXP

Syntax: Exp(A,B)