Forum Discussion

EnTerr's avatar
EnTerr
Roku Guru
12 years ago

Bug in "for each"

Is this a known bug? It sure is not documented in lang-ref.
The following is expected to print multiplication table (81 rows):
BrightScript Debugger> nums = [1,2,3,4,5,6,7,8,9]
BrightScript Debugger> for each i in nums: for each j in nums: ? i " x" j " =" i*j: end for: end for
1 x 1 = 1
1 x 2 = 2
1 x 3 = 3
1 x 4 = 4
1 x 5 = 5
1 x 6 = 6
1 x 7 = 7
1 x 8 = 8
1 x 9 = 9
No RepliesBe the first to reply