Stop, Goto – BrightSign BrightScript 3.0 Reference Manual User Manual

Page 39

Advertising
background image

34

Example: In each of the following lines, the variable on the left side of the equals operator is assigned the value of the
constant or expression on the right side of the equals operator.
a$="a rose is a rose"
b1=1.23
x=x-z1

END

The

END statement terminates script execution normally.

STOP

The

STOP statement interrupts script execution, returns a “STOP” error, and invokes the debugger. Use the cont

command at the debugger prompt to continue execution of the script or the

step command to execute a single step in the

script.

GOTO

GOTO label


The

GOTO statement transfers program control to the line number specified by Label. The GOTO label statement

results in a branching operation. A label is an identifier terminated with a colon on a line that contains no other statements
or expressions.

Example:
mylabel:
print "Hello World"
goto mylabel

Advertising