We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d304910 commit e47db36Copy full SHA for e47db36
tests/if-else.py
@@ -60,8 +60,7 @@ def execute_ast(ast, environment):
60
elif ast.operator == '>':
61
return left > right
62
elif isinstance(ast, IfNode):
63
- condition = execute_ast(ast.condition, environment)
64
- if condition:
+ if condition := execute_ast(ast.condition, environment):
65
execute_ast(ast.body, environment)
66
elif isinstance(ast, ReplyNode):
67
message = ast.message.format(**environment)
0 commit comments