Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
else Keyword | Control Structures
course content

Contenido del Curso

C# Basics

else Keywordelse Keyword

There is an else keyword which can be used for executing a block of code if the condition is not met.

Syntax:

Example:

cs

main.cs

The following diagram explains the flow of if-else statement:

What keyword is used for executing a piece of code if condition is not met in a conditional statement?

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 3. Capítulo 7
course content

Contenido del Curso

C# Basics

else Keywordelse Keyword

There is an else keyword which can be used for executing a block of code if the condition is not met.

Syntax:

Example:

cs

main.cs

The following diagram explains the flow of if-else statement:

What keyword is used for executing a piece of code if condition is not met in a conditional statement?

Selecciona la respuesta correcta

¿Todo estuvo claro?

Sección 3. Capítulo 7
some-alt