Building a music player step 84

Step 84

I don´t really know how to process in this…can some explain in other words? so i can try other way to solve it :grinning: .

Before deleting a song, you need to check if the song is currently playing. If it is, you need to pause the song and play the next song in the playlist.

Use an if statement to check if the userData?.currentSong?.id is equal to the id of the song you want to delete.

if(userData?.currentSong?.id = id){
    
  }

do you remember the difference between comparison operator and assignment operator?

thank you very much!