mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-10-31 08:50:17 +00:00 
			
		
		
		
	
		
			
				
	
	
	
		
			411 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			411 B
		
	
	
	
	
	
	
	
| icon | title | 
|---|---|
| dot | Goto Statement | 
pkpy supports goto/label just like C. You are allowed to change the control flow unconditionally.
!!! This feature is stable after v1.2.2. !!!
Define a label
== <identifier> ==
Goto a label
-> <identifier>
Example
for i in range(10):
  for j in range(10):
    for k in range(10):
      -> exit
== exit ==
print('exit')