- May 23, 2017
- 120
- 326
I found a solution from the QSP FAQ on the QSP Forums. I've attached the playlist code to this message as a .zip. However, I'd like some help understanding why this code block works, which is found in the unpacked .qsp file in the .zip file attached:
I don't understand what the "<>" operator is. I tried looking it up and I can't find anything in javascript or html. ChatGPT actually suggests "<>" is an invalid comparison operator, so I'm stumped.
Code:
if music_on <> music_on_prev or $music_theme <> $music_theme_prev:
CLOSE $cur_theme[track[$music_theme_prev]]
music_on_prev = music_on
$music_theme_prev = $music_theme
if $music_theme <>'':
copyarr 'cur_theme', 'tracklist_<<$music_theme>>'
track[$music_theme] = track[$music_theme]-1
if track[$music_theme] < 0:
track[$music_theme]=ARRSIZE('cur_theme')
end
end
end
if music_on=1 and $music_theme <> '':
if no isplay ($cur_theme[track[$music_theme]]):
track[$music_theme] = track[$music_theme]+1
if ARRSIZE('cur_theme')<=track[$music_theme]:track[$music_theme]=0
end
play $cur_theme[track[$music_theme]],volume
end