Skip to content

Commit

Permalink
Lily/CommentBlocks: Add coveted C block (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyMakesThings committed Aug 24, 2023
1 parent b394944 commit 00998df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions extensions/Lily/CommentBlocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -79,6 +90,10 @@
// no-op
}

commentC(args, util) {
return true;
}

commentReporter(args) {
return args.INPUT;
}
Expand Down

0 comments on commit 00998df

Please sign in to comment.