Roku HD110 User Guide - Page 70
example scripts
View all Roku HD110 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
Examples A good way to learn BrightScript is to look at or modify existing scripts. You can find links to example scripts at www.brightsign.biz/support/demos. You can also test BrightScript commands using the shell. Here is an example: Welcome to the Roku Shell version 3.04 Release Type '?' for help or 'help ' for help on . Roku> script BrightScript Micro Debugger. Enter any BrightScript statement, debug commands, or HELP. BrightScript> print "hello" hello BrightScript> ? "hello" hello BrightScript> ?5+6 11 BrightScript> ?type(5) Integer BrightScript> if 1=1 then print"1 does equal 1!" else print "strange!" 1 does equal 1! BrightScript> ?right("abcdef",3) def BrightScript> exit Roku> 64 • •
64
•
•
•
•
•
•
Examples
A good way to learn BrightScript is to look at or modify existing scripts. You can find links to
example scripts at
www.brightsign.biz/support/demos
.
You can also test BrightScript commands using the shell. Here is an example:
Welcome to the Roku Shell version 3.04 Release
Type '?' for help or 'help <command>' for help on <command>.
Roku> script
BrightScript Micro Debugger.
Enter any BrightScript statement, debug commands, or HELP.
BrightScript> print "hello"
hello
BrightScript> ? "hello"
hello
BrightScript> ?5+6
11
BrightScript> ?type(5)
Integer
BrightScript> if 1=1 then print"1 does equal 1!" else print "strange!"
1 does equal 1!
BrightScript> ?right("abcdef",3)
def
BrightScript> exit
Roku>