Skip to content

Glossary: C# Basics

if statement

Also written: if

A statement that runs its block only when a condition in parentheses is true. An optional `else` block runs when it is false.

Where the book teaches it

Related terms

Blockelse ifbool