BrightSign BrightScript 3.0 Reference Manual User Manual

Page 41

Advertising
background image

36


Example:
> x=5:print 25; "is equal to"; x ^2
> run
25 is equal to 25

Example:
> a$="string"
> print a$;a$,a$;" ";a$
> run
stringstring string string

Example: Each print zone is 16 characters wide. The cursor moves to the next print zone each time a comma is
encountered.
> print "zone 1","zone 2","zone 3","zone 4"
> run
zone 1 zone 2 zone 3 zone 4

Example:
> print "print statement #1 ";
> print "print statement #2"
> run
print statement #1 print statement #2

Example: In some cases, semicolons can be dropped. The following statement is legal.
Print "this is a five "5"!!"

Advertising