aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/interpreter.py b/interpreter.py
index 03ee59d..517335f 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1379,6 +1379,7 @@ class Interpreter():
for i in node.ifs:
result = self.evaluate_statement(i.condition)
if not(isinstance(result, bool)):
+ print(result)
raise InvalidCode('If clause does not evaluate to true or false.')
if result:
self.evaluate_codeblock(i.block)