Making Decisions
8 min · Java
Run different code depending on whether something is true.
Java · Making Decisions0/5 cleared
Enemy 1 of 5
An if runs its { } block only when the condition is true; else covers the rest. Compare with > , < , and == .
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Cold