BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git] / tests / testcases / integration / statements / while_then-2.boo
blob9ba89ddab38bf3dc05414ced20c66871ab99da42
1 """
2 adding item: 0
3 adding item: 1
4 adding item: 2
5 adding item: 3
6 Did we make it?
7 """
9 list = []
11 while len(list) < 5:
12 print 'adding item:', len(list)
13 list.Add(len(list))
14 break if list.Contains(3)
15 then:
16 print "We finished!"
18 print "Did we make it?"