Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
zy856n
Level 7

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
squirreltown
Level 8

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
Level 9

Re: Readability - multi line IF

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

Re: Readability - multi line IF

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