repo.or.cz
/
boo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
BOO-996, BOO-995: Added "then" keyword to replace "else" semantic in looping construc...
[boo.git]
/
tests
/
testcases
/
integration
/
statements
/
while_then-2.boo
blob
9ba89ddab38bf3dc05414ced20c66871ab99da42
1
"""
2
adding item: 0
3
adding item: 1
4
adding item: 2
5
adding item: 3
6
Did we make it?
7
"""
8
9
list
= []
10
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!"
17
18
print
"Did we make it?"