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: 
zy856n
Visitor

Readability - multi line IF

Is it possible to have if statement separated by new line.

if x = "A" or
  x = "B" or
  x = "C" or
  y = "A" and
  ...


currently I am having compile time errors. Please shed light.

-- Regards
0 Kudos
3 REPLIES 3
squirreltown
Roku Guru

Re: Readability - multi line IF

if x = "A" or x = "B" or  x = "C"
.....
end if
Has to be on the same line.
Kinetics Screensavers
0 Kudos
Komag
Roku Guru

Re: Readability - multi line IF

Deft use of TAB can space out your code for better readability
0 Kudos
zy856n
Visitor

Re: Readability - multi line IF

Thanks guys. Right, tab & wrap code.
0 Kudos