if (dialogid == 4) // dialogid { if(response) { //Your codes and shit here, First button, left } if(!response) { //Your codes shit here, Second button, right } }