... | ... | @@ -11,7 +11,7 @@ true and false # result: false |
|
|
true or false # result: true
|
|
|
```
|
|
|
|
|
|
## And and Or conditional statements
|
|
|
## And and Or to select values
|
|
|
```python
|
|
|
.age > 18 and "Ask an adult question?" # result: only when the age is over 18 the text is displayed
|
|
|
.title or "Untitled Note" # result: a string with the title or "Untitled Note" when title is not set
|
... | ... | |