From 90b63f49cb1c8f67e1b1e2098567a9ac59a62c49 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Mon, 16 Jan 2017 09:33:02 -0800 Subject: [PATCH] Python false is False. Issue #828. --- generators/python/logic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/python/logic.js b/generators/python/logic.js index 981ab3696..fe0364868 100644 --- a/generators/python/logic.js +++ b/generators/python/logic.js @@ -35,7 +35,7 @@ Blockly.Python['controls_if'] = function(block) { var code = '', branchCode, conditionCode; do { conditionCode = Blockly.Python.valueToCode(block, 'IF' + n, - Blockly.Python.ORDER_NONE) || 'false'; + Blockly.Python.ORDER_NONE) || 'False'; branchCode = Blockly.Python.statementToCode(block, 'DO' + n) || Blockly.Python.PASS; code += (n == 0 ? 'if ' : 'elif ' ) + conditionCode + ':\n' + branchCode;