Music Shield v2:PlayWithInput

Dear Jacky,

In this source code, when that condition is true and then that process will be called. how we can stop that process when it that have another conditional value is true too?

example:

if( a == “1” ){
myplayer.playSong(“name1.mp3”);
}
else if (a==“2”){
myplayer.playSong(“name2.mp3”);

if a ==“1” we call that name1.mp3 , while that mp3 is running, that replaced where a==“2” and we must call other mp3.