beautypg.com

If label, Label – Ocean Optics Jaz Scripting Language and Scripting Engine User Manual

Page 34

background image

6: Functions Reference

26

013-RD000-000-12- 201010

Arguments

Name

Type

Special Considerations

Label

A labeled statement in the script

Labels are local to main or a user-
defined procedure

If

Syntax:
If(conditional expression) GOTO Label
If(conditional expression) Procedure Name
If(conditional expression) HALT
Arguments

Name

Type

Special Considerations

Conditional expression

Boolean expression

Example (A <> B)

Label

User defined Label

Procedure Name

Name of a user-defined
procedure

Call user expression and return

HALT

Termination of script

Intent:

Conditional execution of script statements.

Label

Syntax: Label