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: 
squirreltown
Roku Guru

return

I know this is really basic but i cant find an example that helps me and haven't used this before.
here is a regex line that returns true or false in the debugger as it should.
? matchmark.IsMatch(markone)

I can't figure out the syntax to do something with the result in the code.
what i want is just:

if answer is "true"
do this
else
end if

Thanks
Kinetics Screensavers
0 Kudos
2 REPLIES 2
joetesta
Roku Guru

Re: return

I think you just need to do this:

if ( matchmark.IsMatch(markone) ) then
' do stuff
else
' do other stuff
end if
aspiring
0 Kudos
squirreltown
Roku Guru

Re: return

Perfect! Thank you joetesta.
Kinetics Screensavers
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.