##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Combine values with arithmetic, comparison, and logical operators
What you'll learn
Basic math
Modulo math
Powers
Test your understanding
Joining text
Comparing values
== vs ===
Test your understanding
Both must be true
Either can be true
Inverting boolean
Test your understanding
Stopping early
Common pattern
Test your understanding
The ?? operator
vs ||
Test your understanding
The ?. operator
Safe method calls
Test your understanding
Storing values
Adding/subtracting one
++x vs x++
Test your understanding
Order of operations
Explicit ordering
Test your understanding
Inline conditions
When to use it
Working with bits
Test your understanding
Complex expressions
Using arithmetic
Combining conditions
Using ?. and ??
Test your understanding
Real-world operators
Conditional calculations
What to avoid
Preparing for control flow
Summary of key concepts