Return, Print – BrightSign BrightScript 3.0 Reference Manual User Manual

Page 40

Advertising
background image

35

RETURN

RETURN expression


The

RETURN statement returns from a function back to its caller. If the function is not type Void, RETURN can also return a

value to the caller.

REM

The

REM statement instructs the compiler to ignore the remainder of the program line. This allows you to insert comments

into your script for documentation. An apostrophe (

‘) may be used instead of REM.


Example:
rem ** this remark introduces the program **
'this too is a remark

PRINT

PRINT [#output_object], [@location], item list


The

PRINT statement prints an item or list of items in the console. The item(s) may be strings, integers, floats, variables,

or expressions. An object with an ifInt, ifFloat, or ifString interface may also be printed. If the

output_object is

specified, this statement will print to an object with an ifStreamSend interface.

If the statement is printing a list of items, the items must be separated with semicolons or commas. If semicolons are
used, spaces are not inserted between printed items; if commas are used, the cursor will automatically advance to the
next print zone before printing the next item.

Positive numbers are printed with a leading blank (without a plus sign). All numbers are printed with a trailing blank, and
no blanks are inserted before or after strings.

Advertising