0
can i make a if else statment?
6 Answers
+ 5
No you cant place 2"if" with codes for both of them individually one below the other. But what you can do :
if (Requirement)
{
Code for failing requirement1
}
else
{
if (Requirement2)
{
Code for failing requirement2
}
Code for passing both
};
OR
Check part3 of this lesson.
+ 1
Yes
If (expression) { code } else { code }
+ 1
no i mean if () if else() else()
+ 1
May be:
if (expression) { code } else if (expression) { code } else { code }
Basically you just replace else-code by another if statement.
+ 1
thx
0
why not :)