I am not too experienced with BrightScript at the moment. This document will go over my knowledge of the BrightScript language so far.
This document used version ? of the BrightScript programming language.
Comments in BrightScript are the same as comments in languages like VB.NET, etc.
' This is a single line comment
' BrightScript does not support multi-line comments (as far as I know)
/!\ This example has not been tested yet, and may not work
BrightScript does NOT support the break
keyword.
To this day, I am still not entirely sure what the break
keyword does, but most languages support it.
/!\ This example has not been tested yet, and may not work
A hello world program in BrightScript is a bit complicated It is not similar to any language I am currently familiar with.
Function helloWorld(msgPort As Object, userVariables As Object, bsp as Object)
print "Hello World"
End Function
/!\ This example has not been tested yet, and may not work
Functions work like so in BrightScript
function myFunction1(msgPort As Object, userVariables As Object, bsp as Object)
print "My function has functioned"
End Function
I am not sure what the msgPort As Object, userVariables As Object, bsp as Object
does, I don't have any way of testing these programs, and this is the piece I took with me.
/!\ This example has not been tested yet, and may not work
Booleans are defined like so in BrightScript:
boolean isTrue = true;
boolean isFalse = false;
/!\ This example has not been tested yet, and may not work
Returning a function in BrightScript is simple:
function myFunction2(msgPort As Object, userVariables As Object, bsp as Object)
print "My function has functioned"
End Function
return myFunction2()
/!\ This example has not been tested yet, and may not work
The majority of my BrightScript knowledge comes from self-experimentation, VB.NET syntax comparisons, and these reposories:
BrightSign/BrightScript-Samples
BrightSign/BrightAuthor-Plugins
BrigthSign/BrigtSign BLE-Commands
-
BrightScript is not curly bracket and semicolon language
-
I began learning BrightScript with a new Roku TV I got for Christmas in 2020. Most of my knowledge comes from experimenting with Visual Basic DOT NET syntax, as they both have similar syntax
-
BrightScript is the language Roku uses for their TV monitors.
-
BrightScript uses the
.brs
file extension -
BrightScript is a language recognized by GitHub
-
I don't know if BrightScript is an open source language or not
-
No other knowledge of BrightScript at the moment.
File version: 1 (2022, Thursday, April 14th at 10:00 pm PST)