rnbvibes wrote:
The script I displayed is an example script that I am looking for help in finishing.
But that's not why he asked.
What you showed here is not really a script.
It looks like you cut a random 4 lines out of your PAL script to show what you're working on.
For a full script it's missing the variable declarations part on top and the actual "action" part at the bottom.
Nonetheless here is what you're looking to do:
Code:
{* Put your variable declarations here *}
PAL.Loop := True;
IF ActivePlayer.GetSongInfo['artist'] = 'ExampleArtist' THEN
BEGIN
{* put your script (minus the variable declarations) here *}
END;
WaitForPlayCount(1);
Make sure to perform no wait stuff inside the IF block. Should you need to perform additional waiting, you can easily transform any IF into a WHILE loop with only one iteration by 1. defining a boolean variable set to true by default, 2. checking that variable AND "your IF-condition" in the WHILE header, 3. setting the variable from step 1 to false as the very first task inside your WHILE loop (optionally: 4. reset the variable to true after the WHILE loop's END;