Skip to content

Glossary: Dart Basics

if / else

Also written: if, else if, else

A statement that runs a block only when its condition is true, with else if and else for other choices. Only the first block whose condition is true runs.

Where the book teaches it

Related terms

conditionswitch statement