> it would be possible to use preset
> musicselections as criteras aswell?
> If I load
> one, genre=pop (then the script saves this info
> to another selection)after that I load another
> one, year=1960-1969, and it saves that info to
> the same selection. I guess it should work, huh?
Well, first we have doublecheck our terminology:
A musicselection is a single entry in the list you get when you press ctrl-F. A default for instance is 70's music.
Each musicselection consists of one or more criteria. The default musicselection "Top 20" for instance consists of two criteria: "play count > 1" and "limit result to 20 tracks most often played".
The first field in each criteria line is a drop down list with all possible criteriatypes (from 'title/artist/album' to 'limit result to').
As you can see there is no criteriatype 'music selection', meaning you can not build nested musicselections where a criteria is specified as another music selection. This does not change using scripting.
What you CAN do is copy the criteria of music selections to other msuic selections. Without SQL this is limited, as AND/OR cannot be nested. This is no problem for your very basic example (precisely one criteria for each selection) but it get impossible fast. Take for instance these music selections:
A) match all criteria: year=1970 and genre=bluegrass
B) match all criteria: year=1980 and genre=country
Now when you want to combine them you definitely want to OR them, AND-ing makes no sense as the intersection would by definition be empty. But Silverjuke does not make this possible: you can only 'match all criteria' (=AND) or 'match any criteria' (=OR).
So you are quite limited in your options and cannot create a satisfactory combinational selection using the GUI (or scripting).
The alternative is using SQL. Change both music selections to SQL and they read:
A) (year=1971 and genrename='bluegrass')
B) (year=1980 and genrename='country')
Combining is as simple as creating a single SQL selection with
((year=1971 and genrename='bluegrass') or (year=1980 and genrename='country'))
> Me I will have to try learn the basics of
> programmning... 
I'm afraid it needs a bit more than basics. If you are really new to programming (and not just Silverjuke scripting) I think you might consider starting with a few challenges a bit smaller in scope to get a feel for it all.
SilverEagleStatistics: Posted by SilverEagle — 27. May 09, 10:05
]]>