if (a == 1) { //something here } else if (a == 2) { /something else here }