Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
brocker
Visitor

CASE or SWITCH Statements In BrightScript?

Hey Friends,

Is there any kind of notion of a CASE or SWITCH statement in BrightScript? If not, what do you do to handle a scenario where you might need that functionality? Big IF/ELSE statement?

Thanks!
Bud
Tags (1)
0 Kudos
3 REPLIES 3
TheEndless
Channel Surfer

Re: CASE or SWITCH Statements In BrightScript?

Big If...Else 😞
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Tags (1)
0 Kudos
brocker
Visitor

Re: CASE or SWITCH Statements In BrightScript?

Ok, thanks Endless. I couldn't find anything in the documentation, but was hoping there was a "trick".

A big ELSE/IF it is!

Thanks
Bud
Tags (1)
0 Kudos
jbrave
Channel Surfer

Re: CASE or SWITCH Statements In BrightScript?

I wish...
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!

For support, visit support.roku.com.