注释#

简介#

注释用于在项目中添加解释或说明。它们不会影响项目的运行,主要用于阐明逻辑或记录功能。

操作#

注释#

By clicking into a Comment stack block, you can edit the text inside. Pressing Enter or return on the keyboard or clicking out of the Comment block will save the text typed inside.

默认的注释指令块。#
[comment]

参数

描述

该指令块没有参数。

示例

启动时,如果按下屏幕,则将所有 LED 颜色设置为绿色#
when started
[Turn LEDs green while the screen is pressed]
forever
if <screen pressed?> then
set [lightall v] LED color to [green v]
else
set [lightall v] LED color to [off v]
结束
结束