Until now, your code always runs every line, from top to bottom. But a real program needs to make decisions. Should Pyrochu attack? Is Aquachu's HP too low? Can your Codémon evolve?
The if statement lets you run a block of code only when a condition is true. Remember booleans? This is where they become powerful!
↗️
Loading editor...
↶
↷
The message about evolving only appears because pyrochuLevel >= 20 is true. Try changing the level to 10 and run again: the first message disappears, but the last line still runs.