added not operator

This commit is contained in:
cozis
2021-12-08 13:20:34 +01:00
parent 51d744ef2e
commit dbf1c325b0
10 changed files with 216 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
- make it so that when a branch condition's and-ed sub-expression fails,
the other sub-expressions aren't evaluated. Like this:
if type(A) == type({}) and A.name != none:
.. do stuff ..
the second sub-expr. "A.name != none" raises an error if the first one
"type(A) == type({})" isn't true, but doesn't need to be evaluated in
that case.