Fade out point script.

Torben,

I use this script to determine the Fadeout point for our News.
Now I need to add a statement that looks for 3 other files, how do I adjust this script?

[code]var
i: integer;
pi: IPlaylistItem;

begin
CurrentPlaylist.BeginRead;
try
for i := 0 to CurrentPlaylist.GetCount - 1 do begin
pi := CurrentPlaylist.GetItem(i);
if pi.GetTitle = ‘Nieuws’ then begin
pi.AutoSearchPosition(ptFadeOut);
end;
end;
finally
CurrentPlaylist.EndRead;
end;
end.[/code]

Happy New year
Ferry

if (pi.GetTitle = 'Nieuws') or (pi.GetTitle = 'another title') or (pi.GetTitle = 'Yet another title') then begin

Thank you very much!