diff --git a/src/blocks/scratch3_procedures.js b/src/blocks/scratch3_procedures.js index 396e48f1..1f0cdf03 100644 --- a/src/blocks/scratch3_procedures.js +++ b/src/blocks/scratch3_procedures.js @@ -72,6 +72,12 @@ class Scratch3ProcedureBlocks { argumentReporterBoolean (args, util) { const value = util.getParam(args.VALUE); if (value === null) { + // tw: is compiled? and is turbowarp? should return true + // Yes, is compiled? is returning a technically incorrect value. + // This results in the least astonishment for users when they click on "is compiled?" on its own. + if (`${args.VALUE}`.toLowerCase() === 'is compiled?' || `${args.VALUE}`.toLowerCase() === 'is turbowarp?') { + return true; + } // When the parameter is not found in the most recent procedure // call, the default is always 0. return 0;