If condition is works based on Boolean True and False values. In normal If condition there are two parts If part and Else part. If the given condition is True then it will execute the If body part statements. If the given condition is False then it will automatically execute the Else part.