Dart编程实例 - else if Dart编程实例 - 简单 if else 语句 Dart编程实例 - Dart Switch Case 语句 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"); } } Dart编程实例 - 简单 if else 语句 Dart编程实例 - Dart Switch Case 语句