String reference in JSON string messages (#741)

* Adds message references to message string interpolation, in the form of %{BKY_STRING}.
 * Re-adding CONTROLS_IFELSE block using the new syntax, referencing to CONTROL_IF equivalents.
This commit is contained in:
Andrew n marshall
2016-11-15 15:51:51 -08:00
committed by GitHub
parent f6aef459fc
commit e5d25bb686
9 changed files with 170 additions and 3 deletions

View File

@@ -51,6 +51,8 @@ Blockly.Python['controls_if'] = function(block) {
return code;
};
Blockly.Python['controls_ifelse'] = Blockly.Python['controls_if'];
Blockly.Python['logic_compare'] = function(block) {
// Comparison operator.
var OPERATORS = {