Skip to content

Commit e70c9cc

Browse files
authored
true false boolean switches
1 parent 943a72b commit e70c9cc

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/addons/addons-l10n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@
214214
"block-switching/operator_multiply": "*",
215215
"block-switching/operator_or": "or",
216216
"block-switching/operator_subtract": "-",
217+
"block-switching/operator_trueBoolean": "true",
218+
"block-switching/operator_falseBoolean": "false",
217219
"block-switching/pen_changePenColorParamBy": "change parameter",
218220
"block-switching/pen_changePenHueBy": "change hue",
219221
"block-switching/pen_changePenShadeBy": "change shade",

src/addons/addons/block-switching/userscript.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,18 @@ export default async function ({ addon, console, msg }) {
620620
},
621621
noopSwitch,
622622
];
623+
blockSwitches["operator_trueBoolean"] = [
624+
noopSwitch,
625+
{
626+
opcode: "operator_falseBoolean",
627+
},
628+
];
629+
blockSwitches["operator_falseBoolean"] = [
630+
{
631+
opcode: "operator_trueBoolean",
632+
},
633+
noopSwitch,
634+
];
623635
}
624636

625637
if (addon.settings.get("sensing")) {

0 commit comments

Comments
 (0)