FlexScript Online
global string g_val = " 💗 "; //全局变量 int add(int a, int b) { return a + b; } int a = 1; print(add(a, 2)); list
c = ["下标从0开始", "泛型", 13]; print(c[0]); map b = { k1: "✅", k2: "这就是FlexScript." }; print(b.k1, b["k2"]); for(int i = 0; i < 6; i+=1) { if(i == 2 ) { continue; } if(i == 4 ) { break; } print(i, g_val); }
build & run