lingo循环语句代码
时间: 2023-08-04 16:03:01 浏览: 189
c代码-continue语句循环
5星 · 资源好评率100%
Sure! Here's an example of a loop statement in the Lingo programming language:
```
on beginSprite
repeat with i = 1 to 10
put "Hello, World!" && i into message
alert message
end repeat
end beginSprite
```
In the above code, the `repeat with i = 1 to 10` statement creates a loop that executes the code block inside it 10 times. Inside the loop, the message "Hello, World!" is concatenated with the value of `i` and stored in the `message` variable. Finally, the `alert` command is used to display the `message` in a dialog box.
Please note that Lingo is primarily used for authoring interactive multimedia applications with Adobe Director, and its usage has become less common in recent years.
阅读全文