main () { var a = 2; var b = [ if (a == 1) 1 else if (a == 2) 2 ]; print(b); }