maybe i'm just dumb, i dont know
This commit is contained in:
parent
f296a2892e
commit
49419f324f
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue