Documentation

Una is developed by Una Technologies Limited

All rights reserved

© 2022 Una Technologies Limited

Print

Terminate the Current Loop

Break

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable>list</variable><variable>value</variable></variables><block type=\"break_keyword\" disabled=\"true\" x=\"23\" y=\"607\"/></xml>"}
				
			

This block is used to stop the current loop.

Parameters: N/A

Output: N/A
Sample code:

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow></value><statement name=\"DO\"><block type=\"basic_consoleLogText\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">It will show once only.</field></shadow></value><next><block type=\"break_keyword\"/></next></block></statement></block></statement></block></xml>"}
				
			

The output:

Break - Output
Previous Doing Actions when Taking Value in the Length of Array
Next Doing Next Action