loop有吧 ! m- p$ {2 e1 l8 j( wloop9 `6 G2 p: e; I! _: J. |; U) F
loop [ commands ]8 Q" _* O9 p6 G! S. \- q6 e/ v
Runs the list of commands forever, or until the current procedure exits through use of the stop& ~5 a: r8 w; C& u" a& S6 n" h
command or the report command.0 v. M2 X. i$ h* M
Note: In most circumstances, you should use a forever button in order to repeat something forever. 6 q' D/ |: b3 F: }The advantage of using a forever button is that the user can click the button to stop the loop ) T: m7 n3 r& Y+ T( F 9 L) k& `% h8 e" S6 e6 j: A' g- a(version 3.1.3)5 H+ l1 L; y$ q4 C1 L/ ]
不过好像不大推荐
globals[p ]1 _/ b5 @: z! E, T" A7 y1 l
to setup0 u$ b! p/ @& ]* B
set p 1' d; r& o" v0 i' V x
set p p + 1* A, }, T9 g9 F( ]
show p $ ?: F( Q* B4 Y2 f5 } end : O, V, b3 G& _' o我想表达的是让这个循环一直下去,直到p=100时才停止,logo语言该怎么写呢?除了repeat,可否用其它原语表示。 : u; G) B: g, U3 q/ ?- B! o7 ~/ ^) d- B
[ 本帖最后由 wjcpcahu 于 2008-4-11 10:25 编辑 ]