@Index not working like I thought it would...

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
#1
As usual for me, some code:
Code:
  Iff %@Index[%Track,Movie and Television Soundtrack] GT -1 Then
     @Echo %@Index[%Track,Movie and Television Soundtrack] "%Track"
  EndIff
and its results:
Code:
   19 "Misc. Web Sources\(Movie and Television Soundtrack(s)\Glee\For the Longest Tim
    0 "Music.AllOfMP3.com\Abba\Number Ones\11 - Knowing Me, Knowing You.mp3"
    1 "Music.AllOfMP3.com\Abba\Number Ones\17 - I Do, I Do, I Do, I Do, I Do.mp3"
    0 "Music.AllOfMP3.com\Crosby, Stills, Nash (and Young)\Daylight Again\02 - Wasted
   ...
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Last Action Hero\07 - Dream O
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
   13 "MusicMP3.ru\(Movie and Television Soundtrack(s))\Les Misrables - Original Lond
I admit what's going on here escapes me.
 
Jan 3, 2012
25
4
UK
#2
It's the commas in the track names. You need to quote the names (and the retuned indices will then be 1 higher than before).