+ 2
can someone define me the sequence of if else??
8 Respuestas
+ 12
Yea sure Joyce
Now see that if statement can be followed by an optional else statement, that executes when the boolean expression is false not true...
Here's the syntax -
if(boolean_expression) {
/* statement(s) will execute if the boolean expression is true */
} else {
/* statement(s) will execute if the
}
If the boolean expression evaluates to true, then the if block of code is executed, otherwise else block will be excuted..
I hope I have cleared this👍
+ 8
See this thread if u still didnt understand:
https://www.sololearn.com/Discuss/1729260/?ref=app
+ 5
Read this lesson :
https://www.sololearn.com/learn/CSharp/2593/?ref=app
+ 5
if (condition1)
{
// executes if condition1 is true
}
else {
// if condition1 is false then , the stmts inside else gets executed...
}
+ 5
Thankyouuuu so much!!❤ Alphin K Sajan Piyush[21 Dec❤️]
+ 4
If is done first. Then the else ifs in order and finally else.
+ 3
Joyce Wlcm :)
+ 2
I mean in a clear explanation huhu I didn't understand