Skip to content
C# Studies

Conditional - IF-ELSE

Base structure:

if (condition)
{
// Enters here if the condition is true
}
else if (anotherCondition)
{
// Enters here if the first condition is false
}
else {
// Enters here if there are no more options
}
// NOTE: we can add as many else if blocks as we want