Section: Numbers, booleans, and comparisons
Ternary expression
python
python
label = "adult" if age >= 18 else "minor"Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Numbers, booleans, and comparisons