If Else statement
The if else statement is a decision statement in programming that creates a flow chart that enables the program, script or application take precise decisions preprogrammed by the developer and redirects activity in the chart making the program more interactive and responsive. It executes a code if a condition is true and another if the current condition is false.
Perks and Uses
The if-else statements are used in executing functions and commands if a specific condition is executed. It first of all checks(reads) the first statement before moving over to the second statement. It can be used in interactive conditions in web development and game avatar decisions and storyline making. It can also be used to create loops, other related statements include the Elif statement(in Python, C and Linux), the else if(in Javascript) and Switch-Case statement