{"id":13907325,"url":"https://github.com/seanpm2001/Learn-BrightScript","last_synced_at":"2025-07-18T05:31:10.459Z","repository":{"id":134857838,"uuid":"481780855","full_name":"seanpm2001/Learn-BrightScript","owner":"seanpm2001","description":"A repository for showcasing my knowledge of the BrightScript programming language, and continuing to learn the language.","archived":false,"fork":false,"pushed_at":"2022-04-15T05:01:24.000Z","size":297,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"Learn-BrightScript","last_synced_at":"2025-07-14T13:24:52.908Z","etag":null,"topics":["article","brightscript","brightscript-collection","brightscript-lang","brightscript-language","brs","collection","education","gpl3","gplv3","learn","learn-brightscript","learn-brightscript-lang","learn-brightscript-language","md","roku","seanpm2001","seanpm2001-education","seanpm2001-life-archive","txt"],"latest_commit_sha":null,"homepage":"https://github.com/seanpm2001/Learn/","language":"Brightscript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seanpm2001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYINGL","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-14T23:47:13.000Z","updated_at":"2025-02-22T10:42:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"be30bed8-de96-4cbc-93b7-5e697f6c8926","html_url":"https://github.com/seanpm2001/Learn-BrightScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"seanpm2001/Git-Template_V8","purl":"pkg:github/seanpm2001/Learn-BrightScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpm2001%2FLearn-BrightScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpm2001%2FLearn-BrightScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpm2001%2FLearn-BrightScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpm2001%2FLearn-BrightScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanpm2001","download_url":"https://codeload.github.com/seanpm2001/Learn-BrightScript/tar.gz/refs/heads/Learn-BrightScript","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanpm2001%2FLearn-BrightScript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265705317,"owners_count":23814421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["article","brightscript","brightscript-collection","brightscript-lang","brightscript-language","brs","collection","education","gpl3","gplv3","learn","learn-brightscript","learn-brightscript-lang","learn-brightscript-language","md","roku","seanpm2001","seanpm2001-education","seanpm2001-life-archive","txt"],"created_at":"2024-08-06T23:01:53.381Z","updated_at":"2025-07-18T05:31:10.444Z","avatar_url":"https://github.com/seanpm2001.png","language":"Brightscript","readme":"\n***\n\n![/BrightScript_1.png](/BrightScript_1.png)\n\n### Learning BrightScript\n\nI am not too experienced with BrightScript at the moment. This document will go over my knowledge of the BrightScript language so far.\n\nThis document used version ? of the BrightScript programming language.\n\n#### Comments in BrightScript\n\nComments in BrightScript are the same as comments in languages like VB.NET, etc.\n\n```BrightScript\n' This is a single line comment\n' BrightScript does not support multi-line comments (as far as I know)\n```\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Break keyword in BrightScript\n\nBrightScript does NOT support the `break` keyword.\n\nTo this day, I am still not entirely sure what the `break` keyword does, but most languages support it.\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Hello World in BrightScript\n\nA hello world program in BrightScript is a bit complicated It is not similar to any language I am currently familiar with.\n\n```BrightScript\nFunction helloWorld(msgPort As Object, userVariables As Object, bsp as Object)\n\tprint \"Hello World\"\nEnd Function\n```\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Functions in BrightScript\n\nFunctions work like so in BrightScript\n\n```brightscript\nfunction myFunction1(msgPort As Object, userVariables As Object, bsp as Object)\n\tprint \"My function has functioned\"\nEnd Function\n```\n\nI 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.\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Booleans in BrightScript\n\nBooleans are defined like so in BrightScript:\n\n```brightscript\nboolean isTrue = true;\nboolean isFalse = false;\n```\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Return a function in BrightScript\n\nReturning a function in BrightScript is simple:\n\n```brightscript\nfunction myFunction2(msgPort As Object, userVariables As Object, bsp as Object)\n\tprint \"My function has functioned\"\nEnd Function\nreturn myFunction2()\n```\n\n_/!\\ This example has not been tested yet, and may not work_\n\n#### Source\n\nThe majority of my BrightScript knowledge comes from self-experimentation, VB.NET syntax comparisons, and these reposories:\n\n[BrightSign/BrightScript-Samples](https://github.com/brightsign/brightscript-samples/)\n\n[BrightSign/BrightAuthor-Plugins](https://github.com/brightsign/BrightAuthor-Plugins/)\n\n[BrigthSign/BrigtSign BLE-Commands](https://github.com/brightsign/brightsign-ble-commands/)\n\n#### Other knowledge of BrightScript\n\n1. BrightScript is not curly bracket and semicolon language\n\n2. 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\n\n3. BrightScript is the language Roku uses for their TV monitors.\n\n4. BrightScript uses the `.brs` file extension\n\n5. BrightScript is a language recognized by GitHub\n\n6. I don't know if BrightScript is an open source language or not\n\n7. No other knowledge of BrightScript at the moment.\n\n***\n\n**File version:** `1 (2022, Thursday, April 14th at 10:00 pm PST)`\n\n***\n","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanpm2001%2FLearn-BrightScript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanpm2001%2FLearn-BrightScript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanpm2001%2FLearn-BrightScript/lists"}