... | ... | @@ -23,6 +23,16 @@ true ? 'yes' : 'no' # result: 'yes |
|
|
true ? false and true ? -1 : false or true ? 'yes' : 'no' : -1 # result: 'yes
|
|
|
```
|
|
|
|
|
|
## Comparison
|
|
|
```python
|
|
|
true = false # result: false
|
|
|
true != false # result: true
|
|
|
5 > 10 # result: false
|
|
|
10 >= 5 # result: true
|
|
|
5 < 10 # result: true
|
|
|
10 <= 5 # result: false
|
|
|
```
|
|
|
|
|
|
## Variable Lookup and function execution
|
|
|
```python
|
|
|
.bar and bar.foo(10) and bar[foo = 10] or shouldNeverGetHere"
|
... | ... | |