From 00998dfe10c8ce621826b979da87743a3a0dbe17 Mon Sep 17 00:00:00 2001 From: LilyMakesThings <127533508+LilyMakesThings@users.noreply.github.com> Date: Thu, 24 Aug 2023 19:41:50 +0100 Subject: [PATCH] Lily/CommentBlocks: Add coveted C block (#923) --- extensions/Lily/CommentBlocks.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/extensions/Lily/CommentBlocks.js b/extensions/Lily/CommentBlocks.js index d2a25c4851..bba99b6571 100644 --- a/extensions/Lily/CommentBlocks.js +++ b/extensions/Lily/CommentBlocks.js @@ -38,6 +38,17 @@ }, }, }, + { + opcode: "commentC", + blockType: Scratch.BlockType.CONDITIONAL, + text: "// [COMMENT]", + arguments: { + COMMENT: { + type: Scratch.ArgumentType.STRING, + defaultValue: "comment", + }, + }, + }, { opcode: "commentReporter", blockType: Scratch.BlockType.REPORTER, @@ -79,6 +90,10 @@ // no-op } + commentC(args, util) { + return true; + } + commentReporter(args) { return args.INPUT; }