DEV Community

asliddin0737
asliddin0737

Posted on

if else statement

In this lesson we learn what is "if else" statement. This theme was very interesting for me. And I want to explain you what is "if else" statement. An if-else statement controls conditional branching. Statements in the if-branch are executed only if the condition evaluates to a nonzero value (or true ). If the value of condition is nonzero, the following statement gets executed, and the statement following the optional else gets skipped.

Top comments (0)