Common mistake
Control flow / Conditional statements / if/else statements
Alternative form
Standard form
Common mistake
Complex conditions
Ternary operator
# Error: the colon
is
missing
if
latitude ==
0
location =
"Equator"
Languages
C
C++
Java
C#
JavaScript
R
Rust
Golang
Delphi
PHP
Ruby
Swift
Kotlin
Lua
TypeScript
Clojure
Bash
Objective-C