root/trunk/orca/tests/working/control_return.r

Revision 1, 302 bytes (checked in by krobillard, 3 years ago)

Import orca & thune.

Line 
1REBOL []
2
3f-does: does [
4    if a = 2 [ return 44 ]
5    0
6]
7
8a: 1
9print f-does
10a: 2
11print f-does
12
13f: func [b] [
14    if b = 2 [ return 44 ]
15    0
16]
17
18print f 1
19print f 2
20print f 3
21
22
23a: 0
24while [true] [
25    print a
26    if a = 1 [break]
27    a: a + 1
28]
29
30print "done"
31
32
33b: [1 2 3]
34forall b [print b/1 break]
Note: See TracBrowser for help on using the browser.