Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart else if

void main() { 
   var num = 2; 
   if(num > 0) { 
      print("${num} is positive"); 
   } 
   else if(num < 0) { 
      print("${num} is negative"); 
   } else { 
      print("${num} is neither positive nor negative"); 
   } 
}  
 
PREVIOUS NEXT
Tagged: #dart
ADD COMMENT
Topic
Name
4+1 =