I want know what this script mean

i want know what mean this script :

(song_nr==songfile.length-1)? _global.song_nr=0 : _global.song_nr++;

or we can rewrite script :

if (song_nr==songfile.length-1){
_golbal.song_nr++
}else{
_gobal.song_nr=0

}
is that true …