The main format of the conditional statements if is as follows:
if (Boolean expression)
{
Body of the conditional statement;
}
The Boolean expression can be a Boolean variable or Boolean logical expression. Boolean expressions cannot be integer (unlike other programming languages like C and C++).
The body of the statement is the part locked between the curly brackets ( { } ). It may consist of one or more operations (statements). When there are several operations, we have a complex block operator.
|
In C#, as in most of the programming languages there is a conditional statement with else clause: the if-else statement. Its format is the following:
if (Boolean expression)
{
Body of the conditional statement;
}
else
{
Body of the else statement;
}
|
Currently we improved our website User Interface and other contents. Our next update is adding video tutorials on this site so, We create a new YouTube channel, our YouTube channel name is CodeX.
We need some time for make video tutorials (CodeX) so, stay with us and keep supporting and you know already we make a Collaboration with HackIsOn YouTube channel long time ago So, please Subscribe Our Channels