Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
matrixebiz
Roku Guru

What is this return?

I have an IDArray that returns somtimes;
<Component: roArray> =

[
]

Which is fine but how do I identify that as a Returned value so I can make another expression out of it?

I tried if IDArray = "" and if IDArray = Invalid but both didn't do anything because I assume the above is neither "" or Invalid so what is it then? Thx
0 Kudos
6 REPLIES 6
squirreltown
Roku Guru

Re: What is this return?

If IDArray <> invalid
do something
end if
Kinetics Screensavers
0 Kudos
matrixebiz
Roku Guru

Re: What is this return?

Hello, the IDArray does return other things at times as well so I need to identify it only when it is that empty value which is not Invalid and if so then change IDArray = Invalid because when it returns other values that I want then I change IDArray to something else
0 Kudos
squirreltown
Roku Guru

Re: What is this return?

if IDarray.count() = 0
do something
end if
Kinetics Screensavers
0 Kudos
matrixebiz
Roku Guru

Re: What is this return?

Great, thank you
0 Kudos
EnTerr
Roku Guru

Re: What is this return?

@matrixebiz -
please take a computer programming 101 course, i implore you!

I have watched your questions and i can tell you are smart but know very little about writing software. Here is an online course i recommend for you: https://www.udacity.com/course/intro-to ... nce--cs101 - it is free and it is fun, a few years ago when i was binging on MOOCs i skimmed it for entertainment's sake. All you need is your browser, watch videos and try code there. It's in Python if i remember but that's irrelevant - when you finish it you will know the ropes and doing what you want in BrightScript will be a walk in the park (not like right now - challenge for even the simplest things).

Go and finish it first - then come back.
0 Kudos
matrixebiz
Roku Guru

Re: What is this return?

Looks like a good start, Thx. 
I never know where to start but your right, I can usually make an educated guess on what I need the code to do in theory so I find myself hacking my way through the code to make it do what I want and I usually get to where I need too but with a lot of wasted (self learning) time on my end via trial and error and asking a bunch of questions pissing some of the coder off due to my coding ignorance, sorry about that.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.