An if statements tests a particular condition, if the condition evaluates to true, a course of action is followed a statement or set of statements is executed. Otherwise ( if the condition evaluates to false ), the course of action is ignored.
|
|
The if-else statement is if you have seen so far allow you to execute a set of statements if a condition or expression evaluates to true. What if there is another course of action to be allowed if the expression evaluates to false. There is another form of if that allows for this of either-or condition by providing else clause.
|
|
We have a YouTube channel for live game streaming purposes, the channel name is "NightHawk". You can visit our gaming channel and support us, Thank you