loop有吧+ E$ W# T: s: A" p+ \
loop ) Y6 U+ F7 v0 yloop [ commands ] / N) m! {8 @/ n* r& A! `1 t. }/ M& T- iRuns the list of commands forever, or until the current procedure exits through use of the stop ' t7 t4 W4 s' T e6 Kcommand or the report command.5 I$ D- m# M5 `
Note: In most circumstances, you should use a forever button in order to repeat something forever." f2 f. p. S# n, @8 y
The advantage of using a forever button is that the user can click the button to stop the loop z7 z- @- x# E$ s6 Y6 P9 [ 5 N: w- n. x) v6 e% g) i(version 3.1.3) * v6 l; }1 [: x2 |# S( n$ b h0 g不过好像不大推荐
globals[p ]: X4 O* m; p8 d7 c7 T
to setup; u! [( x2 \" ?* g$ b' x! M& i
set p 1. Y% V% ]! Q; Y M4 ^
set p p + 1/ K- M1 n# a: c+ W
show p $ i( B( }/ |0 e) A7 W0 F2 S end, P, T! _' s, C, i
我想表达的是让这个循环一直下去,直到p=100时才停止,logo语言该怎么写呢?除了repeat,可否用其它原语表示。% ?2 E7 X; @! j) n( U* X" |5 A8 E
2 c9 _7 h4 `' V2 Y( S
[ 本帖最后由 wjcpcahu 于 2008-4-11 10:25 编辑 ]