I'm trying to put it all together minus the playlist count but I get a syntax error and I'm not sure what I did wrong.
I save my variables so I can easily tweak them when I need to.
save(10 , genrePointValue)
save(5, fourStarValue)
save(10 , fiveStarValue)
save(50 , favArtistValue)
get my base points
save(math([Number Plays] * 10, basePoints))
Get the favorite artist bonus.
save(if(isequal([IsFavoriteArtist], 1, 2), formatnumber(load(favArtistValue)), 0),favoriteArtistBonus)
Get the ratings bonus
save(
IfElse(
Compare([Rating],>=,5),formatnumber(load(fiveStarValue)),
Compare([[Rating],=,4),formatnumber(load(fourStarValue)),
Compare([Rating],<=,3),0
)
, ratingsBonus)
use the formula to get the final value
math(formatnumber(load(basePoints)) + formatnumber(load(favoriteArtistBonus)) + formatnumber(load(favoriteGenreBonus)) + formatnumber(load(ratingsBonus)))
I get a syntax error and here's the expression as one snippet
save(10 , genrePointValue)
save(5, fourStarValue)
save(10 , fiveStarValue)
save(50 , favArtistValue)
save(math([Number Plays] * 10, basePoints))
save(if(isequal([IsFavoriteArtist], 1, 2), formatnumber(load(favArtistValue)), 0),favoriteArtistBonus)
save(
ifelse(isequal([Genre],Metal, 8), formatnumber(load(genrePointValue)),
isequal([Genre],Progressive, 8), formatnumber(load(genrePointValue)), 1, 0)
, favoriteGenreBonus)
save(
IfElse(
Compare([Rating],>=,5),formatnumber(load(fiveStarValue)),
Compare([[Rating],=,4),formatnumber(load(fourStarValue)),
Compare([Rating],<=,3),0
)
, ratingsBonus)
math(formatnumber(load(basePoints)) + formatnumber(load(favoriteArtistBonus)) + formatnumber(load(favoriteGenreBonus)) + formatnumber(load(ratingsBonus)))