Open SK1Y101 opened 3 years ago
The slightly less well known equivalent of while
, until
instead continues executing while the condition is false:
(modern languages like python and C do not have a direct anaglogue)
while x != 2:
print(x)
verboscript:
repeat the following until x is equal to two:
show x.
Som syntax ideas for loops:
For loops
Python:
This language:
While
Python:
This language:
break
Python:
This language:
Not sure whether any of these are readable, but that’s for discussion to decide right?