maybe i'm just dumb, i dont know

This commit is contained in:
sussy layers dev 2023-11-08 15:44:54 +00:00 committed by GitHub
commit 49419f324f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,8 +29,7 @@ function register() {
}, (block) => {
const CONDITION = javascriptGenerator.valueToCode(block, 'CONDITION', javascriptGenerator.ORDER_ATOMIC);
const BLOCKS = javascriptGenerator.statementToCode(block, 'BLOCKS');
const code = `if (${CONDITION ? `Boolean(${CONDITION})` : 'false'}) {
${BLOCKS}};`;
const code = `if (${CONDITION ? `Boolean(${CONDITION})` : 'false'}) { ${BLOCKS} };`;
return `${code}\n`;
})
// if <> then {} else {}