In #brightscript, string comparisons are case sensitive.

You could litter your code with LCase() calls, but if you call it on an invalid value or any variable type other string, it'll throw an exception in your app. 😬

So to make everyone's life easier, here's a simple case insensitive string equality function you can use.

https://1hitsong.com/posts/brightscript-string-compare/

#programming #foss

Case insensitive string comparison in BrightScript

String comparisons in BrightScript are case sensitive. Since we programmers know you should never trust data is in the expected format, we need a simple method to compare two strings for equality.

1hitsong
Also turns out Roku only ever half implemented ISO8601 in #brightscript and timezone support is ... patchy.

#Recap #review2024

This year I made my return to owning and posting on a website.

I reworked my old site into a #programming #blog discussing #roku programming using #brightscript and #scenegraph.

https://1hitsong.github.io/

1hitsong

I post stuff I’m interested in. That’s it.

1hitsong

A simple, easy way to check if a nested chain of objects is valid in #BrightScript.

https://1hitsong.github.io/posts/brightscript-check-chain-of-objects/

#blog #roku #programming

Check if a nested chain of objects is valid

A core variable type in BrightScript is the associative array. These arrays allow objects to be accessed using keys. The access methods I’ve seen used most often are dots or brackets.

1hitsong

New #blog post: A helper method to check if multiple variables are valid in #BrightScript.

https://1hitsong.github.io/posts/brightscript-check-if-many-valid/

#programming

Check if many things are valid in BrightScript

When programming BrightScript, there will certainly come a time when you will need to check if multiple variables are valid; or if you’re not using my isValid() helper function, if multiple variables are not invalid.

1hitsong
I love #JavaScript and program #Brightscript in my free time. I recognize I have zero taste in languages😂
Roku SceneGraph: "Build a Channel"

The SceneGraph Developers: Build a Channel course teaches novice Roku developers how to develop a channel from the ground up with the Roku SDK. This course f...

YouTube

😆

#programming #meme about #roku's #brightscript language