All lessons

Making Decisions

7 min · Ruby

Run different code depending on whether something is true.

Ruby · Making Decisions0/5 cleared

Enemy 1 of 5

An if runs until its else or end. Compare with > , < , == . Ruby uses end to close the block.

You
Syntax Skeleton

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: Cold