Loop Flow Control - o2bblockbusting/cs421_project GitHub Wiki

The 'J' and 'K' characters are used to adjust the flow of how a loop runs. The 'J' control character stands for "Jump out" and has the same functionality as 'break' in other programming languages as it exits the current loop. The 'K' character stands for "Kontinue" and causes the program to start the next cycle of the loop.

Example:

M# Prints out numbers 1 through 10 but stops at 5 and also skips 3 #M
AnumNV0
Wnum<10Y
AnumNVnum+1
Inum=3YKZ

P(num)
Inum=5Y
J
Z

Z