loop有吧6 d( [ o9 s H" F) `& R
loop7 [& W) R) ^# Z9 A ~
loop [ commands ] 8 p' {8 U9 p5 g: W$ d1 `$ ~: b- ]6 @Runs the list of commands forever, or until the current procedure exits through use of the stop! I6 G+ H8 m! K9 m4 `9 i9 F
command or the report command. 9 [+ X1 ]* z8 E% V/ _9 V. _Note: In most circumstances, you should use a forever button in order to repeat something forever. ; S {0 T" p4 a& K3 @+ hThe advantage of using a forever button is that the user can click the button to stop the loop! O: z. D* R2 ^7 u
globals[p ]' `8 e2 S- e3 l! r P! H
to setup$ P7 x/ D+ p M6 {1 M# d7 m2 F
set p 1- v+ d6 f. V5 i! G
set p p + 1( f: ?8 x! e% B' q, A, T0 \8 L$ y
show p w! d$ ?& {! @' s# N* Y) K$ Z
end$ ^# m, Y$ T7 s- B) L1 ?$ o
我想表达的是让这个循环一直下去,直到p=100时才停止,logo语言该怎么写呢?除了repeat,可否用其它原语表示。 0 @& M5 I4 O o/ B% ?8 K! V3 P: C, M* L n9 F7 C) s/ u
[ 本帖最后由 wjcpcahu 于 2008-4-11 10:25 编辑 ]