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