User Manual
Print

Breaking Off a Few Second

Pause ms

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable>visionAnalysisResult</variable><variable>result</variable><variable>photo1</variable></variables><block type=\"basic_sleep\" disabled=\"true\" x=\"23\" y=\"202\"><value name=\"ms\"><shadow type=\"math_number\" disabled=\"true\"><field name=\"NUM\">0</field></shadow></value></block></xml>"}
				
			

This block is used to stop some actions.

Parameters: Condition: Number (Default: 0)

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=\"basic_consoleLogText\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">abcde</field></shadow></value><next><block type=\"basic_sleep\"><value name=\"ms\"><shadow type=\"math_number\"><field name=\"NUM\">2000</field></shadow></value><next><block type=\"basic_consoleLogText\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">hi</field></shadow></value></block></next></block></next></block></statement></block></xml>"}
				
			

Before 2000ms, the output:

After 2000ms, the output: