4.9. Lua repeat…until cycle

发布时间 : 2023-10-12 23:00:02 UTC      

Page Views: Stats unavailable

In Lua programming language repeat...until , a loop statement is different from for and while cycle for and while , the conditional statement of the loop is judged at the beginning of the execution of the current loop, while repeat...until conditional statement of the loop is judged after the end of the current loop.

4.9.1. Grammar #

In Lua programming language repeat...until circular syntax format:

repeat
   statements
until( condition )

We notice that the loop condition judgment statement condition at the end of the loop body, so the loop body executes once before the condition is judged.

If the conditional judgment statement ( condition ) for false the loop restarts execution until the conditional statement ( condition ) for true will stop the execution.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.