WHILE Loop construct that repeats the loop as long as the condition is valid at the beginning of the loop.
CONTROLS
WHILE condition block
condition - condition to be met
block - Block with the instructions to process within the loop
This method has no refinements
WHILE Loop construct that repeats the loop as long as the condition is valid at the beginning of the loop.
Sentence: "Hello you good folks that are supporters of the Meta language"
text-left: sentence
while text-left [
text-left: find sentence " " ; space
forward: (count sentence ) - (count text-left)
word: copy cut sentence forward
write/line word
sentence: skip sentence forward + 1
]
FOR-EACH
FOREVER
REPEAT
FOR
UNTIL