If Else Conditional Statement in Dart

Conditional Statements are executed when a specified condition is satisfied or True. One such conditional statement in Dart (mostly in every languauge) is If-Else statement.
The syntax for If condition statement is:
    if(condition)
    {        
      /* Code */    
    }
The else code is only executed when the If condition is false or not satisfied.
    if(condition)   
    {        
        /* Code */    
    }    
    else    
    {       
        /* Code */    
    }    
If- Else statements can be nested in each other ato chec for multiple conditions related to the previous condition. This is called as nesting of conditions. We can nest uncountable statements in each other.
    if( condition1 ){  
        if( condition 2 )  
        {    
        /* Code executes when both
        condition 1 and 2 satisfy */  
        }
    }
    else{  
        if( condition 3 )  
        {    /* Code */  }
    }      
Note: This is not a loop. Loop goes on continuously until a specific logic is true or, till a particular expression becomes false. If-Else is executed only once and hence take single time unit while analysis of a particular Algorithm.

Need more Information?
Click here for YouTube Link
Very Easy! Follow my video lectures on YouTube link and keep reading my blog here for more information. In the video lectures, I have explained all the basic and minor details. The same content will be posted on this website if you like reading more than watching.