enable assignment operators and add substraction support for numbers
This commit is contained in:
1 parent
52348e0d1b
commit
af7814c6d4
3 files changed
+12
-2
No files matched your search
@@ -202,4 +202,7 @@ def _element_calculate(left, operator, right):
|
||||
elif operator == '+':
|
||||
if is_number(left) and is_number(right) or is_string(left) and is_string(right):
|
||||
return [create(left.obj + right.obj)]
|
||||
elif operator == '-':
|
||||
if is_number(left) and is_number(right):
|
||||
return [create(left.obj - right.obj)]
|
||||
return [left, right]
|
||||
Reference in new issue
Block a user