Assuming you need to create a simple land command to exit a loop, you can define a variable done and set it to true when you want to exit the loop. Here's an example code snippet:
main.m146 chars10 lines
In this example, the loop will continue until done is set to true. Inside the loop, you can check for some condition that indicates you need to exit the loop and set done to true if that condition is true. This will cause the loop to exit on the next iteration.
gistlibby LogSnag