Only play a certain type

Hi all,

Currently I’m trying to build a script that will detect if I’m in ON AIR mode (so far that works), and then will check what tracks in the playlist have which types. For example, if a track is in ‘News’ or in ‘Advertising’. It is one of them, it is allowed to play. Otherwise it isn’t. The purpose of this is to build a player that is dedicated to news and ads.

Is this possible? How do I check for types in mAirlist?

Kind regards,
Riccardo